summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-01-17 21:57:11 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-01-17 21:57:11 (GMT)
commit17c7cd8d02361a104aaff4de20b2beb524ae3f47 (patch)
tree994df3e5fcd01776f52b062203fd9d59031d2a57 /Modules/_struct.c
parente4bc7f69c28b7edfbc9ccdf7be6b5249b38f6cbd (diff)
downloadcpython-17c7cd8d02361a104aaff4de20b2beb524ae3f47.zip
cpython-17c7cd8d02361a104aaff4de20b2beb524ae3f47.tar.gz
cpython-17c7cd8d02361a104aaff4de20b2beb524ae3f47.tar.bz2
Replace PyNumber_Int with PyNumber_Long.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c6
1 files changed, 3 insertions, 3 deletions
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 @@ get_long(PyObject *v, long *p)
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 @@ get_wrapped_long(PyObject *v, long *p)
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 @@ get_wrapped_ulong(PyObject *v, unsigned long *p)
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);