From bd39de609bcd340dd00fa9dab1519ee2a3aac458 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 12 Jan 2003 20:47:55 +0000 Subject: [PATCH] use PyInt for vars not PyLong --- src/python.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python.cc b/src/python.cc index 475b7299..a9a457f8 100644 --- a/src/python.cc +++ b/src/python.cc @@ -60,9 +60,9 @@ bool python_exec(const std::string &path) bool python_get_long(const char *name, long *value) { PyObject *val = PyDict_GetItemString(obdict, const_cast(name)); - if (!(val && PyLong_Check(val))) return false; + if (!(val && PyInt_Check(val))) return false; - *value = PyLong_AsLong(val); + *value = PyInt_AsLong(val); return true; } -- 2.39.2