eadler ec294fd7f5 MFC r258779,r258780,r258787,r258822:
Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

Similar to the (1 << 31) case it is not defined to do (2 << 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.
2014-02-04 03:36:42 +00:00
..
2013-09-23 18:12:25 +00:00
2013-07-10 07:40:30 +00:00
2014-01-29 13:35:12 +00:00
2013-10-22 00:58:51 +00:00
2014-01-15 07:49:17 +00:00
2014-01-15 08:17:31 +00:00
2014-01-07 21:23:41 +00:00
2014-01-28 13:29:54 +00:00
2013-11-02 02:38:32 +00:00
2013-12-13 15:23:07 +00:00
2013-11-28 22:06:37 +00:00
2013-10-09 13:48:08 +00:00
2013-10-12 17:46:13 +00:00
2013-11-26 16:13:48 +00:00
2014-01-09 23:08:56 +00:00
2013-12-13 00:56:05 +00:00
2013-06-29 15:58:03 +00:00
2014-01-28 21:56:18 +00:00
2013-09-07 20:25:22 +00:00
2013-12-14 00:25:57 +00:00
2013-07-04 21:12:58 +00:00
2013-07-15 05:09:13 +00:00
2013-10-31 16:16:52 +00:00