mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases in intobject.h
This commit is contained in:
parent
1a3284ed69
commit
217cfd1c86
123 changed files with 888 additions and 885 deletions
|
|
@ -110,7 +110,7 @@ ast_error_finish(const char *filename)
|
|||
if (!errstr)
|
||||
return;
|
||||
Py_INCREF(errstr);
|
||||
lineno = PyInt_AsLong(PyTuple_GetItem(value, 1));
|
||||
lineno = PyLong_AsLong(PyTuple_GetItem(value, 1));
|
||||
if (lineno == -1) {
|
||||
Py_DECREF(errstr);
|
||||
return;
|
||||
|
|
@ -3074,7 +3074,7 @@ parsenumber(const char *s)
|
|||
if (*end == '\0') {
|
||||
if (errno != 0)
|
||||
return PyLong_FromString((char *)s, (char **)0, 0);
|
||||
return PyInt_FromLong(x);
|
||||
return PyLong_FromLong(x);
|
||||
}
|
||||
/* XXX Huge floats may silently fail */
|
||||
#ifndef WITHOUT_COMPLEX
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue