all repos — openbox @ bd39de609bcd340dd00fa9dab1519ee2a3aac458

openbox fork - make it a bit more like ryudo

use PyInt for vars not PyLong
Dana Jansens danakj@orodu.net
commit

bd39de609bcd340dd00fa9dab1519ee2a3aac458

parent

1b59ea59897cea5f7fde87049845fdaf5edef5f9

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/python.ccsrc/python.cc

@@ -60,9 +60,9 @@

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; }