diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -258,7 +258,8 @@ int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2) { | |||
258 | case LUA_TBOOLEAN: return bvalue(t1) == bvalue(t2); /* true must be 1 !! */ | 258 | case LUA_TBOOLEAN: return bvalue(t1) == bvalue(t2); /* true must be 1 !! */ |
259 | case LUA_TLIGHTUSERDATA: return pvalue(t1) == pvalue(t2); | 259 | case LUA_TLIGHTUSERDATA: return pvalue(t1) == pvalue(t2); |
260 | case LUA_TLCF: return fvalue(t1) == fvalue(t2); | 260 | case LUA_TLCF: return fvalue(t1) == fvalue(t2); |
261 | case LUA_TSTRING: return luaS_eqstr(rawtsvalue(t1), rawtsvalue(t2)); | 261 | case LUA_TSHRSTR: return eqshrstr(rawtsvalue(t1), rawtsvalue(t2)); |
262 | case LUA_TLNGSTR: return luaS_eqlngstr(rawtsvalue(t1), rawtsvalue(t2)); | ||
262 | case LUA_TUSERDATA: { | 263 | case LUA_TUSERDATA: { |
263 | if (uvalue(t1) == uvalue(t2)) return 1; | 264 | if (uvalue(t1) == uvalue(t2)) return 1; |
264 | else if (L == NULL) return 0; | 265 | else if (L == NULL) return 0; |