Roberto Ierusalimschy %!s(int64=23) %!d(string=hai) anos
pai
achega
53aaee6ee6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lobject.c

+ 1 - 1
lobject.c

@@ -58,7 +58,7 @@ int luaO_equalObj (const TObject *t1, const TObject *t2) {
     case LUA_TNIL:
     case LUA_TNIL:
       return 1;
       return 1;
     case LUA_TBOOLEAN:
     case LUA_TBOOLEAN:
-      return bvalue(t1) == bvalue(t2);
+      return bvalue(t1) == bvalue(t2);  /* true must be 1 !! */
     default:  /* all other types are equal if pointers are equal */
     default:  /* all other types are equal if pointers are equal */
       return tsvalue(t1) == tsvalue(t2);
       return tsvalue(t1) == tsvalue(t2);
   }
   }