From cce2f217d403dff7344fcc1c381e36dfd075a961 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Thu, 15 Jan 2009 19:32:23 +0000 Subject: Issue 4910, patch 2 of (probably) 3: pave the way for renaming of nb_long: remove last remaining use of nb_long (in the struct module) from the core, set nb_long slots on all builtin and extension types to 0, and remove uses of __long__ in test_complex and test_binop. Reviewed by Benjamin Peterson. --- Modules/_struct.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Modules/_struct.c') diff --git a/Modules/_struct.c b/Modules/_struct.c index a9b1ffac53..a99e7f227e 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)) -- cgit v1.2.1