Update ceval.c

This commit is contained in:
blueloveTH 2024-07-01 12:42:19 +08:00
parent fdc26c6b93
commit ca7552c9f6

View File

@ -668,11 +668,7 @@ static bool stack_binaryop(pk_VM* self, py_Name op, py_Name rop) {
} }
} }
} }
// eq/ne op never fails // eq/ne op never fails due to object.__eq__
if(op == __eq__ || op == __ne__) {
self->last_retval = (op == __eq__) ? self->False : self->True;
return true;
}
return BinaryOptError(byte.arg); return BinaryOptError(byte.arg);
} }