aboutsummaryrefslogtreecommitdiff
path: root/src/tools.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools.c')
-rw-r--r--src/tools.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools.c b/src/tools.c
index b412e84..36e0051 100644
--- a/src/tools.c
+++ b/src/tools.c
@@ -136,6 +136,7 @@ static bool_t openlib( lua_State *L, const char *name, size_t len ) {
136 136
137static int dummy_writer(lua_State *L, const void* p, size_t sz, void* ud) 137static int dummy_writer(lua_State *L, const void* p, size_t sz, void* ud)
138{ 138{
139 (void)L; (void)p; (void)sz; (void) ud; // unused
139 return 666; 140 return 666;
140} 141}
141 142
@@ -1229,7 +1230,6 @@ static void inter_copy_func( lua_State *L2, uint_t L2_cache_i, lua_State *L, uin
1229{ 1230{
1230 FuncSubType funcSubType; 1231 FuncSubType funcSubType;
1231 lua_CFunction cfunc = luaG_tocfunction( L, i, &funcSubType); // NULL for LuaJIT-fast && bytecode functions 1232 lua_CFunction cfunc = luaG_tocfunction( L, i, &funcSubType); // NULL for LuaJIT-fast && bytecode functions
1232 i = STACK_ABS( L, i);
1233 1233
1234 ASSERT_L( L2_cache_i != 0 ); 1234 ASSERT_L( L2_cache_i != 0 );
1235 STACK_GROW(L,2); 1235 STACK_GROW(L,2);
@@ -1241,7 +1241,7 @@ static void inter_copy_func( lua_State *L2, uint_t L2_cache_i, lua_State *L, uin
1241 luaL_Buffer b; 1241 luaL_Buffer b;
1242 // 'lua_dump()' needs the function at top of stack 1242 // 'lua_dump()' needs the function at top of stack
1243 // if already on top of the stack, no need to push again 1243 // if already on top of the stack, no need to push again
1244 int needToPush = (i != lua_gettop( L)); 1244 int needToPush = (i != (uint_t)lua_gettop( L));
1245 if( needToPush) 1245 if( needToPush)
1246 lua_pushvalue( L, i); 1246 lua_pushvalue( L, i);
1247 1247