Files
git/builtin
Jeff King 9a93c6686f avoid shifting signed integers 31 bits
We sometimes use 32-bit unsigned integers as bit-fields.
It's fine to access the MSB, because it's unsigned. However,
doing so as "1 << 31" is wrong, because the constant "1" is
a signed int, and we shift into the sign bit, causing
undefined behavior.

We can fix this by using "1U" as the constant.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2016-01-04 09:51:16 -08:00
..
2015-08-31 15:39:10 -07:00
2015-08-25 13:11:21 -07:00
2015-09-28 14:57:10 -07:00
2015-09-28 19:16:54 -07:00
2015-10-16 09:45:15 -07:00