diff --git a/Source/NSDate.m b/Source/NSDate.m index 963f2d68c..c57e3e46c 100644 --- a/Source/NSDate.m +++ b/Source/NSDate.m @@ -337,7 +337,12 @@ - (id) initWithTimeIntervalSinceReferenceDate: (NSTimeInterval)secs } #endif +#if USE_SMALL_DATE == 0 + _seconds_since_ref = secs; + return self; +#else return CREATE_SMALL_DATE(secs); +#endif } - (id) initWithCoder: (NSCoder*)coder @@ -353,7 +358,12 @@ - (id) initWithCoder: (NSCoder*)coder at: &secondsSinceRef]; } +#if USE_SMALL_DATE == 0 + _seconds_since_ref = secondsSinceRef; + return self; +#else return CREATE_SMALL_DATE(secondsSinceRef); +#endif } // NSDate Hashing, Comparison and Equality