Skip to content

Commit

Permalink
fixed raw_equal()
Browse files Browse the repository at this point in the history
  • Loading branch information
shewer authored Mar 31, 2024
1 parent 67e2aa1 commit b65cd3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/lua.cc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ namespace LuaImpl {
}

static int raw_equal (lua_State *L) {
if (lua_type(L, 1) == LUA_TTABLE, lua_type(L, 2) == LUA_TTABLE) {
if (lua_type(L, 1) == LUA_TTABLE && lua_type(L, 2) == LUA_TTABLE) {
if (lua_rawequal(L, 1, 2)) {
lua_pushboolean(L, true);
return 1;
Expand Down

0 comments on commit b65cd3f

Please sign in to comment.