pythonless

This commit is contained in:
Vitor Santos Costa
2018-03-19 14:26:29 +00:00
parent b54439d909
commit 927a43933c
4 changed files with 11 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ PyObject *term_to_python(term_t t, bool eval, PyObject *o, bool cvt) {
PyObject *ip = term_to_python(trhs, eval, o, cvt);
if (PySequence_Check(v)) {
#if PY_MAJOR_VERSION < 3
if (PyLong_Check(ip) {
if (PyLong_Check(ip)) {
min = PyLong_AsLong(ip);
} else if (PyInt_Check(ip) {
min = PyInt_asInt(ip);