Commit 1a566ff2 authored by Fred Drake's avatar Fred Drake

When the parameter to PyInt_AsLong() has already been checked with

PyInt_Check(), use PyInt_AS_LONG() instead (two places).
parent 8f2918f4
......@@ -670,7 +670,7 @@ parser_tuple2ast(self, args)
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 @@ build_node_children(tuple, root, line_num)
else {
ok = PyInt_Check(temp);
if (ok)
type = PyInt_AsLong(temp);
type = PyInt_AS_LONG(temp);
Py_DECREF(temp);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment