mirror of
https://github.com/facebook/zstd.git
synced 2025-12-10 00:06:51 -05:00
fix conversion warning
This commit is contained in:
parent
1bef87857b
commit
30281d889f
@ -21,7 +21,7 @@ MEM_STATIC unsigned ZSTD_countTrailingZeros32_fallback(U32 val)
|
|||||||
30, 22, 20, 15, 25, 17, 4, 8,
|
30, 22, 20, 15, 25, 17, 4, 8,
|
||||||
31, 27, 13, 23, 21, 19, 16, 7,
|
31, 27, 13, 23, 21, 19, 16, 7,
|
||||||
26, 12, 18, 6, 11, 5, 10, 9};
|
26, 12, 18, 6, 11, 5, 10, 9};
|
||||||
return DeBruijnBytePos[((U32) ((val & -(S32) val) * 0x077CB531U)) >> 27];
|
return DeBruijnBytePos[((U32) ((val & (0-val)) * 0x077CB531U)) >> 27];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user