Przeglądaj źródła

Clear stack after print_jit_status() in CLI.

Suggested by Hydroque.
Mike Pall 7 lat temu
rodzic
commit
03cd5aa749
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/luajit.c

+ 1 - 0
src/luajit.c

@@ -151,6 +151,7 @@ static void print_jit_status(lua_State *L)
     fputs(s, stdout);
   }
   putc('\n', stdout);
+  lua_settop(L, 0);  /* clear stack */
 }
 
 static int getargs(lua_State *L, char **argv, int n)