Commit e58bffb8 authored by Antoine Pitrou's avatar Antoine Pitrou

Followup to 8e824e09924a: fix regression on 32-bit builds

parent 3c7e9280
......@@ -1540,7 +1540,10 @@ save_long(PicklerObject *self, PyObject *obj)
/* out of range for int pickling */
PyErr_Clear();
}
else if (val <= 0x7fffffffL && val >= -0x80000000L)
else
#if SIZEOF_LONG > 4
if (val <= 0x7fffffffL && val >= -0x80000000L)
#endif
return save_int(self, val);
if (self->proto >= 2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment