python: PyInt_* no longer exists in python3, replace with PyLong_*

This commit is contained in:
Hilko Bengen
2012-09-20 19:36:03 +02:00
committed by Richard W.M. Jones
parent b36b44af9e
commit e482f2faf0

View File

@@ -381,7 +381,7 @@ free_strings (char **argv)
pr " optargs_s.bitmask |= %s_%s_BITMASK;\n" c_optarg_prefix uc_n;
(match optarg with
| OBool _ | OInt _ ->
pr " optargs_s.%s = PyInt_AsLong (py_%s);\n" n n;
pr " optargs_s.%s = PyLong_AsLong (py_%s);\n" n n;
pr " if (PyErr_Occurred ()) return NULL;\n"
| OInt64 _ ->
pr " optargs_s.%s = PyLong_AsLongLong (py_%s);\n" n n;