Replace PyNumber_Int with PyNumber_Long.
diff --git a/Modules/_struct.c b/Modules/_struct.c
index a99e7f2..25144de 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -155,7 +155,7 @@
PyErr_Clear();
if (PyErr_WarnEx(PyExc_DeprecationWarning, FLOAT_COERCE, 2) < 0)
return -1;
- o = PyNumber_Int(v);
+ o = PyNumber_Long(v);
if (o == NULL)
return -1;
res = get_long(o, p);
@@ -260,7 +260,7 @@
PyErr_Clear();
if (PyErr_WarnEx(PyExc_DeprecationWarning, FLOAT_COERCE, 2) < 0)
return -1;
- o = PyNumber_Int(v);
+ o = PyNumber_Long(v);
if (o == NULL)
return -1;
res = get_wrapped_long(o, p);
@@ -299,7 +299,7 @@
PyErr_Clear();
if (PyErr_WarnEx(PyExc_DeprecationWarning, FLOAT_COERCE, 2) < 0)
return -1;
- o = PyNumber_Int(v);
+ o = PyNumber_Long(v);
if (o == NULL)
return -1;
res = get_wrapped_ulong(o, p);