Mercurial > cpython-lru_cache-weakref
diff Modules/parsermodule.c @ 10215:d1686cf08d11 legacy-trunk
When the parameter to PyInt_AsLong() has already been checked with
PyInt_Check(), use PyInt_AS_LONG() instead (two places).
| author | Fred Drake <fdrake@acm.org> |
|---|---|
| date | Wed, 17 Feb 1999 17:35:53 +0000 |
| parents | 38023a425e48 |
| children | c0b86a44a120 |
line wrap: on
line diff
--- a/Modules/parsermodule.c Wed Feb 17 17:34:58 1999 +0000 +++ b/Modules/parsermodule.c Wed Feb 17 17:35:53 1999 +0000 @@ -670,7 +670,7 @@ ok = (temp != NULL) && PyInt_Check(temp); if (ok) /* this is used after the initial checks: */ - start_sym = PyInt_AsLong(temp); + start_sym = PyInt_AS_LONG(temp); Py_XDECREF(temp); } if (ok) { @@ -810,7 +810,7 @@ else { ok = PyInt_Check(temp); if (ok) - type = PyInt_AsLong(temp); + type = PyInt_AS_LONG(temp); Py_DECREF(temp); } }
