diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-12-20 22:57:23 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-12-20 22:57:23 (GMT) |
commit | 8445104d7d8ed460061317cd39232e56f9217c29 (patch) | |
tree | 6a754e6759e1f2beaaa2671d442b6630f7737527 /Objects/longobject.c | |
parent | 704b34d9e4481ef35cfe56daabb4a016da9e83aa (diff) | |
download | cpython-8445104d7d8ed460061317cd39232e56f9217c29.zip cpython-8445104d7d8ed460061317cd39232e56f9217c29.tar.gz cpython-8445104d7d8ed460061317cd39232e56f9217c29.tar.bz2 |
Drop _PyLong_FitsInLong. Fixes #1666.
Diffstat (limited to 'Objects/longobject.c')
-rw-r--r-- | Objects/longobject.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c index 15f56d6..dc459fd 100644 --- a/Objects/longobject.c +++ b/Objects/longobject.c @@ -392,19 +392,6 @@ PyLong_AsLong(PyObject *obj) return result; } -int -_PyLong_FitsInLong(PyObject *vv) -{ - int size; - if (!PyLong_CheckExact(vv)) { - PyErr_BadInternalCall(); - return 0; - } - /* conservative estimate */ - size = Py_SIZE(vv); - return -2 <= size && size <= 2; -} - /* Get a Py_ssize_t from a long int object. Returns -1 and sets an error condition if overflow occurs. */ |