]> Dogcows Code - chaz/openbox/blobdiff - src/python.cc
start on otk::ustring (unicode/utf8)
[chaz/openbox] / 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.023537 seconds and 4 git commands to generate.