pkgsrc/mail/thunderbird31/patches/patch-mozilla_xpcom_ds_TimeStamp.h
ryoon 6e95e654f9 Import thunderbird31-31.7.0 as mail/thunderbird31.
Mozilla Thunderbird is a redesign of the Mozilla mail component. The
goal is to produce a cross platform stand alone mail application using
the XUL user interface language. This version tracks 31 ESR.
2015-07-13 17:49:26 +00:00

18 lines
722 B
C

$NetBSD: patch-mozilla_xpcom_ds_TimeStamp.h,v 1.1 2015/07/13 17:49:26 ryoon Exp $
--- mozilla/xpcom/ds/TimeStamp.h.orig 2013-10-23 22:09:21.000000000 +0000
+++ mozilla/xpcom/ds/TimeStamp.h
@@ -158,11 +158,11 @@ private:
// NOTE: this MUST be a >= test, because int64_t(double(INT64_MAX))
// overflows and gives INT64_MIN.
if (aTicks >= double(INT64_MAX))
- return TimeDuration::FromTicks(INT64_MAX);
+ return TimeDuration::FromTicks(int64_t(INT64_MAX));
// This MUST be a <= test.
if (aTicks <= double(INT64_MIN))
- return TimeDuration::FromTicks(INT64_MIN);
+ return TimeDuration::FromTicks(int64_t(INT64_MIN));
return TimeDuration::FromTicks(int64_t(aTicks));
}