mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 03:18:14 +00:00
potential fix for MSVC compile error
This commit is contained in:
6
src/external/sinfl.h
vendored
6
src/external/sinfl.h
vendored
@@ -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
|
||||
|
Reference in New Issue
Block a user