eadler 44c01df173 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.

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.

Discussed with:	-arch, rdivacky
Reviewed by:	cperciva
2013-11-30 22:17:27 +00:00
..
2013-06-07 21:23:11 +00:00
2012-06-14 14:38:55 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2012-08-15 03:03:03 +00:00
2013-01-17 09:52:35 +00:00
2012-06-13 05:02:51 +00:00
2012-06-13 05:02:51 +00:00
2013-06-08 07:16:22 +00:00
2013-03-11 10:56:46 +00:00
2012-06-13 05:02:51 +00:00
2012-12-19 00:24:31 +00:00