]> granicus.if.org Git - python/commitdiff
Replace PyNumber_Int with PyNumber_Long.
authorMark Dickinson <dickinsm@gmail.com>
Sat, 17 Jan 2009 21:57:11 +0000 (21:57 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sat, 17 Jan 2009 21:57:11 +0000 (21:57 +0000)
Modules/_struct.c
Modules/grpmodule.c
Modules/selectmodule.c
Objects/weakrefobject.c

index a99e7f227eb6620030c645c890dce0d83d3cdc4e..25144de98cb8498c1734902ff599117d7b2d585c 100644 (file)
@@ -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);
index ca442e5e5f9503c7a11a5fa7fdbaf37cf92b9594..a58cb060a6e92eeadba4f8d928bd53590dc0b81e 100644 (file)
@@ -90,7 +90,7 @@ grp_getgrgid(PyObject *self, PyObject *pyo_id)
     unsigned int gid;
     struct group *p;
 
-    py_int_id = PyNumber_Int(pyo_id);
+    py_int_id = PyNumber_Long(pyo_id);
     if (!py_int_id)
            return NULL;
     gid = PyLong_AS_LONG(py_int_id);
index 6ec574dd4f7984a54b1327266aebfeaa3d303c00..bd42e12196ee385d4086fca519ea9dac8c3943c2 100644 (file)
@@ -515,7 +515,7 @@ poll_poll(pollObject *self, PyObject *args)
                return NULL;
        }
        else {
-               tout = PyNumber_Int(tout);
+               tout = PyNumber_Long(tout);
                if (!tout)
                        return NULL;
                timeout = PyLong_AsLong(tout);
index b65e5fdd34d4b9702245c15e8f28e89d8be53315..aa655730e66b77795725e2721840450e42c5c31c 100644 (file)
@@ -488,7 +488,7 @@ WRAP_BINARY(proxy_rshift, PyNumber_Rshift)
 WRAP_BINARY(proxy_and, PyNumber_And)
 WRAP_BINARY(proxy_xor, PyNumber_Xor)
 WRAP_BINARY(proxy_or, PyNumber_Or)
-WRAP_UNARY(proxy_int, PyNumber_Int)
+WRAP_UNARY(proxy_int, PyNumber_Long)
 WRAP_UNARY(proxy_float, PyNumber_Float)
 WRAP_BINARY(proxy_iadd, PyNumber_InPlaceAdd)
 WRAP_BINARY(proxy_isub, PyNumber_InPlaceSubtract)