changeset 1379:ddbd48ced0d7

Fix from Geoffroy Weisenhorn: on 32-bit hosts mktimeconst needs 1L<<31 to be an _unsigned_ long constant.
author Rob Landley <rob@landley.net>
date Thu, 16 Jun 2011 07:41:10 -0500
parents 47853d06dd3f
children 6ea45e5e39f5
files sources/patches/linux-noperl-timeconst.patch
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/patches/linux-noperl-timeconst.patch	Wed Jun 15 20:11:39 2011 -0500
+++ b/sources/patches/linux-noperl-timeconst.patch	Thu Jun 16 07:41:10 2011 -0500
@@ -122,7 +122,7 @@
 +
 +			for (;;) {
 +				mul32 = ((to << shift) + from - 1) / from;
-+				if (mul32 >= (1L<<31))
++				if (mul32 >= (1UL<<31))
 +					break;
 +				shift++;
 +			}