Skip to content

Commit

Permalink
fix compilation error due to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dibyendu Majumdar committed Nov 14, 2015
1 parent 99d71b7 commit 6e6f318
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ravi_llvmluaapi.cpp
Expand Up @@ -67,7 +67,7 @@ static void l_getmetatable(lua_State *L, const char *meta_key) {
// meta_key is the key assigned to the meta table of the userdata
static void *l_testudata(lua_State *L, int arg_index, const char *meta_key) {
void *p = lua_touserdata(L, arg_index);
int n = lua_gettop(L);
//int n = lua_gettop(L);
if (p != NULL) { // value is a userdata?
if (lua_getmetatable(L, arg_index)) { // does it have a metatable?
lua_pushlightuserdata(L, (void *)meta_key); // meta_key
Expand All @@ -79,7 +79,7 @@ static void *l_testudata(lua_State *L, int arg_index, const char *meta_key) {
lua_pop(L, 2); // remove both metatables
}
}
lua_assert(n == lua_gettop(L));
//lua_assert(n == lua_gettop(L));
return p; /* to avoid warnings */
}

Expand Down

0 comments on commit 6e6f318

Please sign in to comment.