Skip to content

Commit

Permalink
fix bug not balance vm stack
Browse files Browse the repository at this point in the history
pop value pushed by luaL_requiref when WITH_PLAIN_LUA defined
  • Loading branch information
zhaozg committed Apr 26, 2019
1 parent 532a943 commit 1ef62b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ static lua_State* vm_acquire(){
lua_pushcfunction(L, luaopen_luvipath);
lua_setfield(L, -2, "luvipath");
luaL_requiref(L, "bit", luaopen_bit, 1);
lua_pop(L, 1);
}
#endif

Expand Down

0 comments on commit 1ef62b4

Please sign in to comment.