Browse Source

Clear stack after print_jit_status() in CLI.

Suggested by Hydroque.
Mike Pall 7 năm trước cách đây
mục cha
commit
03cd5aa749
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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)