diff options
Diffstat (limited to 'Doc/includes/run-func.c')
-rw-r--r-- | Doc/includes/run-func.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/includes/run-func.c b/Doc/includes/run-func.c index e4f5a27..1c9860d 100644 --- a/Doc/includes/run-func.c +++ b/Doc/includes/run-func.c @@ -26,7 +26,7 @@ main(int argc, char *argv[]) if (pFunc && PyCallable_Check(pFunc)) { pArgs = PyTuple_New(argc - 3); for (i = 0; i < argc - 3; ++i) { - pValue = PyInt_FromLong(atoi(argv[i + 3])); + pValue = PyLong_FromLong(atoi(argv[i + 3])); if (!pValue) { Py_DECREF(pArgs); Py_DECREF(pModule); @@ -39,7 +39,7 @@ main(int argc, char *argv[]) pValue = PyObject_CallObject(pFunc, pArgs); Py_DECREF(pArgs); if (pValue != NULL) { - printf("Result of call: %ld\n", PyInt_AsLong(pValue)); + printf("Result of call: %ld\n", PyLong_AsLong(pValue)); Py_DECREF(pValue); } else { |