Fix previous commit.

GitOrigin-RevId: b59e7accdc77715b756c5c219b89dada1e89a776
This commit is contained in:
levlam 2018-12-20 03:44:11 +03:00
parent 5a56da186f
commit 9bb38365f6

View File

@ -98,7 +98,7 @@ inline int32 count_bits64(uint64 x) {
inline int32 count_leading_zeroes32(uint32 x) {
unsigned __int32 res = 0;
if (_BitScanReverse(&__int32, x)) {
if (_BitScanReverse(&res, x)) {
return 31 - res;
}
return 32;