Explorar o código

fix `builtins_print`

blueloveTH hai 1 ano
pai
achega
2a330cc6cd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/public/modules.c

+ 2 - 2
src/public/modules.c

@@ -329,8 +329,8 @@ static bool builtins_round(int argc, py_Ref argv) {
 
 static bool builtins_print(int argc, py_Ref argv) {
     // print(*args, sep=' ', end='\n')
-    py_TValue* args;
-    int length = pk_arrayview(argv, &args);
+    py_TValue* args = py_tuple_data(argv);
+    int length = py_tuple_len(argv);
     assert(length != -1);
     c11_sv sep = py_tosv(py_arg(1));
     c11_sv end = py_tosv(py_arg(2));