blumonilr %!s(int64=5) %!d(string=hai) anos
pai
achega
55da36276a
Modificáronse 2 ficheiros con 2 adicións e 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
     }