]> Dogcows Code - chaz/openbox/commitdiff
use PyInt for vars not PyLong
authorDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 20:47:55 +0000 (20:47 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 12 Jan 2003 20:47:55 +0000 (20:47 +0000)
src/python.cc

index 475b7299a32965fd7e0fdc6746714e9789acaac3..a9a457f84b578b5b31337c9ca5c89c2d2756ff39 100644 (file)
@@ -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;
 }
 
This page took 0.021844 seconds and 4 git commands to generate.