summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2016-08-04 13:30:49 +0200
committerWan-Teh Chang <wtc@google.com>2016-08-04 13:30:49 +0200
commitc5437cc30709eb5ca8e6bc2b4f425ca771b41131 (patch)
tree043845f2595aa255a57d8e24b784a5bc397d91e7
parentff5661d6c19089df30f330a9ba38e1b4cacb2a11 (diff)
downloadnspr-hg-c5437cc30709eb5ca8e6bc2b4f425ca771b41131.tar.gz
Bug 265368, LL_INIT warning, signed shift result ... sets the sign bit ... and becomes negative, r=tedNSPR_4_13_BETA1
-rw-r--r--pr/src/misc/prlong.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pr/src/misc/prlong.c b/pr/src/misc/prlong.c
index 701d0812..185fa5cd 100644
--- a/pr/src/misc/prlong.c
+++ b/pr/src/misc/prlong.c
@@ -5,10 +5,10 @@
#include "prlong.h"
-static PRInt64 ll_zero = LL_INIT( 0x00000000,0x00000000 );
-static PRInt64 ll_maxint = LL_INIT( 0x7fffffff, 0xffffffff );
-static PRInt64 ll_minint = LL_INIT( 0x80000000, 0x00000000 );
-static PRUint64 ll_maxuint = LL_INIT( 0xffffffff, 0xffffffff );
+static PRInt64 ll_zero = PR_INT64(0x0000000000000000);
+static PRInt64 ll_maxint = PR_INT64(0x7fffffffffffffff);
+static PRInt64 ll_minint = PR_INT64(0x8000000000000000);
+static PRUint64 ll_maxuint = PR_UINT64(0xffffffffffffffff);
PR_IMPLEMENT(PRInt64) LL_Zero(void) { return ll_zero; }
PR_IMPLEMENT(PRInt64) LL_MaxInt(void) { return ll_maxint; }