Merge pull request #815 from nickandrew/quieten-assertion
Remove the lobject.c:88 assertion failures
This commit is contained in:
commit
844f85bec0
|
@ -83,9 +83,11 @@ int luaO_rawequalObj (const TValue *t1, const TValue *t2) {
|
||||||
case LUA_TBOOLEAN:
|
case LUA_TBOOLEAN:
|
||||||
return bvalue(t1) == bvalue(t2); /* boolean true must be 1 !! */
|
return bvalue(t1) == bvalue(t2); /* boolean true must be 1 !! */
|
||||||
case LUA_TLIGHTUSERDATA:
|
case LUA_TLIGHTUSERDATA:
|
||||||
case LUA_TROTABLE:
|
|
||||||
case LUA_TLIGHTFUNCTION:
|
|
||||||
return pvalue(t1) == pvalue(t2);
|
return pvalue(t1) == pvalue(t2);
|
||||||
|
case LUA_TROTABLE:
|
||||||
|
return rvalue(t1) == rvalue(t2);
|
||||||
|
case LUA_TLIGHTFUNCTION:
|
||||||
|
return fvalue(t1) == fvalue(t2);
|
||||||
default:
|
default:
|
||||||
lua_assert(iscollectable(t1));
|
lua_assert(iscollectable(t1));
|
||||||
return gcvalue(t1) == gcvalue(t2);
|
return gcvalue(t1) == gcvalue(t2);
|
||||||
|
|
Loading…
Reference in New Issue