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 */
|
/* out of range for int pickling */
|
||||||
PyErr_Clear();
|
PyErr_Clear();
|
||||||
}
|
}
|
||||||
else if (val <= 0x7fffffffL && val >= -0x80000000L)
|
else
|
||||||
return save_int(self, val);
|
#if SIZEOF_LONG > 4
|
||||||
|
if (val <= 0x7fffffffL && val >= -0x80000000L)
|
||||||
|
#endif
|
||||||
|
return save_int(self, val);
|
||||||
|
|
||||||
if (self->proto >= 2) {
|
if (self->proto >= 2) {
|
||||||
/* Linear-time pickling. */
|
/* Linear-time pickling. */
|
||||||
|
|
Loading…
Reference in New Issue