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-11-05 12:18:12 -08:00
2015-11-03 15:32:39 -08:00
2015-09-14 11:44:44 -07:00
2015-11-03 15:32:43 -08:00
2015-10-16 09:45:15 -07:00
2015-10-16 15:27:52 -07:00
2015-10-16 15:27:52 -07:00
2015-10-16 15:27:52 -07:00
2015-09-03 19:18:00 -07:00
2015-11-05 12:18:08 -08:00
2015-10-16 15:27:52 -07:00
2015-11-16 08:59:19 -05:00
2015-08-20 13:16:50 -07:00
2015-08-17 09:14:59 -07:00
2015-08-31 15:39:10 -07:00
2015-09-03 19:17:48 -07:00
2015-12-11 11:14:13 -08:00
2015-10-16 14:32:50 -07:00
2015-12-04 11:33:08 -08:00
2015-10-16 15:27:52 -07:00
2015-10-16 15:27:52 -07:00
2015-08-19 14:48:55 -07:00
2015-08-25 12:49:19 -07:00
2015-08-25 13:11:21 -07:00
2015-08-20 09:57:38 -07:00
2015-09-28 11:07:04 -07:00
2015-11-03 15:32:41 -08:00
2015-09-28 14:57:10 -07:00
2015-12-11 11:14:13 -08:00
2015-10-16 15:27:52 -07:00
2015-10-16 09:45:15 -07:00
2015-09-01 16:31:12 -07:00
2015-10-16 15:27:52 -07:00
2015-11-03 15:32:25 -08:00
2015-10-16 14:32:32 -07:00
2015-08-19 12:58:58 -07:00
2015-09-01 16:31:16 -07:00
2016-01-04 09:51:16 -08:00
2015-12-11 11:14:13 -08:00
2015-11-03 15:32:25 -08:00
2015-09-28 19:16:54 -07:00
2015-08-24 10:33:15 -07:00
2015-10-26 14:06:46 -07:00
2015-08-19 12:58:58 -07:00
2015-12-11 11:14:14 -08:00
2015-10-16 15:27:52 -07:00
2015-11-03 15:32:38 -08:00
2015-10-16 09:45:15 -07:00
2015-10-16 15:27:52 -07:00
2015-09-11 09:50:02 -07:00
2015-11-04 14:20:44 -08:00