瀏覽代碼
fix C++ style cast
pull/4807/head
Rico P
3 天之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: B5690EEEBB952194
共有
1 個文件被更改,包括
1 次插入 和
1 次删除
-
src/external/sinfl.h
|
|
@ -174,7 +174,7 @@ sinfl_bsr(unsigned n) { |
|
|
|
#ifdef _MSC_VER |
|
|
|
unsigned long uln = 0; |
|
|
|
_BitScanReverse(&uln, n); |
|
|
|
return nf">int(uln); |
|
|
|
return p">(int)(uln); |
|
|
|
#else // defined(__GNUC__) || defined(__clang__) || defined(__TINYC__) |
|
|
|
return 31 - __builtin_clz(n); |
|
|
|
#endif |
|
|
|