blumonilr hace 5 años
padre
commit
55da36276a
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      lorun/cext/access.c
  2. 1 1
      lorun/cext/convert.c

+ 1 - 1
lorun/cext/access.c

@@ -31,7 +31,7 @@ int fileAccess(PyObject *files, const char *file, long flags) {
         return 0;
     }
     //printf("%s:%d\n",file,flags);
-    perm = PyInt_AsLong(perm_obj);
+    perm = PyLong_AsLong(perm_obj);
     if (perm == flags)
         return 1;
 

+ 1 - 1
lorun/cext/convert.c

@@ -36,7 +36,7 @@ int initCalls(PyObject *li, u_char calls[]) {
         #else
         if (!PyInt_Check(t) && !PyLong_Check(t))
             RAISE1("calls must be a list of numbers.");
-        calls[PyInt_AsLong(t)] = 1;
+        calls[PyLong_AsLong(t)] = 1;
         #endif
     }