eris: genlt now can compare any two objects, but it returns 'equal' for nonsortable types

This commit is contained in:
2021-07-09 13:51:14 -04:00
parent 70b33905da
commit 496190d5cf

View File

@@ -329,7 +329,7 @@ LUA_API int lua_genlt (lua_State *L, int index1, int index2) {
} else if (t1 == LUA_TBOOLEAN) {
i = bvalue(o1) < bvalue(o2);
} else {
luaG_ordererror(L, o1, o2);
return 0;
}
lua_unlock(L);
return i;