Eitan Adler 7a22215c53 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-11-17 23:51:19 +00:00
2013-01-01 18:29:25 +00:00
2013-10-30 15:46:50 +00:00
2013-10-25 05:25:19 +00:00
2013-11-19 16:11:03 +00:00
2012-06-02 08:47:26 +00:00
2013-11-25 20:45:30 +00:00
2013-11-21 20:43:43 +00:00
2013-05-30 08:02:00 +00:00
2013-05-12 22:22:12 +00:00
2012-10-18 15:39:29 +00:00
2013-05-12 22:22:12 +00:00
2013-09-05 12:21:11 +00:00