mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Followup to 8e824e09924a: fix regression on 32-bit builds
This commit is contained in:
parent
3c7e928098
commit
e58bffb8ae
1 changed files with 5 additions and 2 deletions
|
@ -1540,7 +1540,10 @@ 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
|
||||||
|
#if SIZEOF_LONG > 4
|
||||||
|
if (val <= 0x7fffffffL && val >= -0x80000000L)
|
||||||
|
#endif
|
||||||
return save_int(self, val);
|
return save_int(self, val);
|
||||||
|
|
||||||
if (self->proto >= 2) {
|
if (self->proto >= 2) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue