summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-01-12 20:47:55 +0000
committerDana Jansens <danakj@orodu.net>2003-01-12 20:47:55 +0000
commitbd39de609bcd340dd00fa9dab1519ee2a3aac458 (patch)
tree92e87f8d515ef313e99730087458d7a5962ecae2
parent1b59ea59897cea5f7fde87049845fdaf5edef5f9 (diff)
use PyInt for vars not PyLong
-rw-r--r--src/python.cc4
1 files 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<char*>(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;
}