From b65cd3f0e5994d37feefe2be38ae8dbd16bce30f Mon Sep 17 00:00:00 2001 From: Shewer Lu Date: Mon, 1 Apr 2024 07:40:05 +0800 Subject: [PATCH] fixed raw_equal() --- src/lib/lua.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/lua.cc b/src/lib/lua.cc index 5ffad20..087ec85 100644 --- a/src/lib/lua.cc +++ b/src/lib/lua.cc @@ -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;