pkgsrc/devel/xulrunner17/patches/patch-xpcom_ds_TimeStamp.h

21 lines
729 B
C
Raw Normal View History

$NetBSD: patch-xpcom_ds_TimeStamp.h,v 1.1 2013/01/10 16:17:11 ryoon Exp $
http://gnats.netbsd.org/47233
--- xpcom/ds/TimeStamp.h.orig 2012-11-19 15:43:32.000000000 +0000
+++ xpcom/ds/TimeStamp.h
@@ -130,11 +130,11 @@ private:
// NOTE: this MUST be a >= test, because int64_t(double(INT64_MAX))
// overflows and gives LL_MININT.
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));
}