@@ -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;