mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
fix various instances of -1 being assigned to unsigned types
This commit is contained in:
parent
be7c6a0819
commit
e1a3e41bf3
15 changed files with 25 additions and 27 deletions
|
@ -198,7 +198,7 @@ inline int IntLog2(u64 val)
|
|||
return 63 - __builtin_clzll(val);
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
unsigned long result = -1;
|
||||
unsigned long result = ULONG_MAX;
|
||||
_BitScanReverse64(&result, val);
|
||||
return result;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue