ソースを参照

potential fix for MSVC compile error

pull/4807/head
Rico P 3日前
committed by GitHub
コミット
7dc409d060
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: B5690EEEBB952194
1個のファイルの変更3行の追加3行の削除
  1. +3
    -3
      src/external/sinfl.h

+ 3
- 3
src/external/sinfl.h ファイルの表示

@ -172,9 +172,9 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
static int
sinfl_bsr(unsigned n) {
#ifdef _MSC_VER
unsigned long r = 0;
_BitScanReverse(&r, n);
return int(r);
unsigned long uln = 0;
_BitScanReverse(&uln, n);
return int(uln);
#else // defined(__GNUC__) || defined(__clang__) || defined(__TINYC__)
return 31 - __builtin_clz(n);
#endif

読み込み中…
キャンセル
保存