Index: src/OFDate.m ================================================================== --- src/OFDate.m +++ src/OFDate.m @@ -385,20 +385,20 @@ - copy { return [self retain]; } -- (of_comparison_result_t)compare: (id)object +- (of_comparison_result_t)compare: (id )object { OFDate *otherDate; if (![object isKindOfClass: [OFDate class]]) @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; - otherDate = object; + otherDate = (OFDate*)object; if (seconds < otherDate->seconds) return OF_ORDERED_ASCENDING; if (seconds > otherDate->seconds) return OF_ORDERED_DESCENDING; Index: src/OFNumber.m ================================================================== --- src/OFNumber.m +++ src/OFNumber.m @@ -936,20 +936,20 @@ return ([number intMaxValue] == [self intMaxValue]); return ([number uIntMaxValue] == [self uIntMaxValue]); } -- (of_comparison_result_t)compare: (id)object +- (of_comparison_result_t)compare: (id )object { OFNumber *number; if (![object isKindOfClass: [OFNumber class]]) @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; - number = object; + number = (OFNumber*)object; if (type & OF_NUMBER_FLOAT || number->type & OF_NUMBER_FLOAT) { double double1 = [self doubleValue]; double double2 = [number doubleValue];