From 1ef62b43deed2bd1f65f6d9988dc23005395d667 Mon Sep 17 00:00:00 2001 From: zhaozg Date: Fri, 26 Apr 2019 23:40:30 +0800 Subject: [PATCH] fix bug not balance vm stack pop value pushed by luaL_requiref when WITH_PLAIN_LUA defined --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 1b658255..18863592 100644 --- a/src/main.c +++ b/src/main.c @@ -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