diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_struct.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c index a9b1ffa..a99e7f2 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -127,8 +127,8 @@ get_pylong(PyObject *v) return v; } m = Py_TYPE(v)->tp_as_number; - if (m != NULL && m->nb_long != NULL) { - v = m->nb_long(v); + if (m != NULL && m->nb_int != NULL) { + v = m->nb_int(v); if (v == NULL) return NULL; if (PyLong_Check(v)) |