diff Modules/_pickle.c @ 71861:72aaaff280d1

Followup to 8e824e09924a: fix regression on 32-bit builds
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 13 Aug 2011 20:40:32 +0200
parents 8e824e09924a
children 56242682a931
line wrap: on
line diff
--- a/Modules/_pickle.c	Sat Aug 13 20:15:19 2011 +0200
+++ b/Modules/_pickle.c	Sat Aug 13 20:40:32 2011 +0200
@@ -1540,8 +1540,11 @@
         /* out of range for int pickling */
         PyErr_Clear();
     }
-    else if (val <= 0x7fffffffL && val >= -0x80000000L)
-        return save_int(self, val);
+    else
+#if SIZEOF_LONG > 4
+        if (val <= 0x7fffffffL && val >= -0x80000000L)
+#endif
+            return save_int(self, val);
 
     if (self->proto >= 2) {
         /* Linear-time pickling. */