-
Simon McVittie authored
When we're doing bitwise operations, addition with wraparound and large left-shifts, it seems safer to use unsigned integers, where the effect of overflow is well-defined (it wraps around). Signed integer overflow is undefined behaviour, so compilers are free to optimize by assuming that it cannot happen. Detected by the undefined behaviour sanitizer (UBSan). Signed-off-by: Simon McVittie <smcv@collabora.com>
3241b4fe