diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2017-06-07 04:16:02 -0700 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2017-06-07 19:52:07 -0700 |
| commit | e1a3e41bf33bf6a366760ede17c2e3bd2b106116 (patch) | |
| tree | a2d6b34b5603794a24c0e6acd998e52d6313aeb0 /Source/Core/Common/MathUtil.h | |
| parent | be7c6a081918ac2240f6a2e4e51ca6e3daa0f032 (diff) | |
fix various instances of -1 being assigned to unsigned types
Diffstat (limited to 'Source/Core/Common/MathUtil.h')
| -rw-r--r-- | Source/Core/Common/MathUtil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index 7e48e38d80..becaf09792 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -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; |
