Followup to 8e824e09924a: fix regression on 32-bit builds
This commit is contained in:
parent
3c7e928098
commit
e58bffb8ae
|
@ -1540,8 +1540,11 @@ save_long(PicklerObject *self, PyObject *obj)
|
|||
/* 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. */
|
||||
|
|
Loading…
Reference in New Issue