blumonilr 5 年之前
父节点
当前提交
55da36276a
共有 2 个文件被更改,包括 2 次插入2 次删除
  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
     }