diff --git a/SignalServiceKit/src/Util/NSDate+OWS.h b/SignalServiceKit/src/Util/NSDate+OWS.h index 338e9d205..6d3336abc 100755 --- a/SignalServiceKit/src/Util/NSDate+OWS.h +++ b/SignalServiceKit/src/Util/NSDate+OWS.h @@ -17,7 +17,9 @@ extern const NSTimeInterval kMonthInterval; #define kDayInMs (kHourInMs * 24) #define kWeekInMs (kDayInMs * 7) #define kMonthInMs (kDayInMs * 30) -#define kYearsInMs (kDayInMs * 365) + +// kYearsInMs is a double to avoid overflow +#define kYearsInMs (kDayInMs * 365.0) @interface NSDate (OWS)