Explorar o código

Clear stack after print_jit_status() in CLI.

Suggested by Hydroque.
Mike Pall %!s(int64=7) %!d(string=hai) anos
pai
achega
03cd5aa749
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)