NSCFBoolean Hashes Incorrectly
Nat! reports that [NSNumber numberWithInt:1]
and [NSNumber numberWithBool:YES]
are equal but have different hash codes because NSCFBoolean
doesn’t override -[NSObject hash]
.
Nat! reports that [NSNumber numberWithInt:1]
and [NSNumber numberWithBool:YES]
are equal but have different hash codes because NSCFBoolean
doesn’t override -[NSObject hash]
.