Jelajahi Sumber

[no ci] fix

张皓晟 3 bulan lalu
induk
melakukan
14bdeab241
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/modules/pkpy.c

+ 1 - 1
src/modules/pkpy.c

@@ -58,7 +58,7 @@ static bool pkpy_memory_usage(int argc, py_Ref argv) {
 }
 }
 
 
 static bool pkpy_setup_gc_debug_callback(int argc, py_Ref argv) {
 static bool pkpy_setup_gc_debug_callback(int argc, py_Ref argv) {
-    PY_CHECK_ARGC(0);
+    PY_CHECK_ARGC(1);
     ManagedHeap* heap = &pk_current_vm->heap;
     ManagedHeap* heap = &pk_current_vm->heap;
     if(py_isnone(argv)) {
     if(py_isnone(argv)) {
         heap->debug_callback = NULL;
         heap->debug_callback = NULL;