commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r887851 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h
Date Mon, 07 Dec 2009 06:54:49 GMT
Author: mturk
Date: Mon Dec  7 06:54:49 2009
New Revision: 887851

URL: http://svn.apache.org/viewvc?rev=887851&view=rev
Log:
Use 64bit const macro

Modified:
    commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h

Modified: commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h?rev=887851&r1=887850&r2=887851&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h (original)
+++ commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h Mon Dec  7 06:54:49
2009
@@ -275,11 +275,11 @@
 #if CC_SIZEOF_VOIDP == 8
 #define P2J(P)                  ((jlong)LLT(P))
 #define J2P(P, T)               ((T)LLT(P))
-#define I2P(P, T)               ((T)LLT((jlong)P & 0x00000000FFFFFFFFL))
+#define I2P(P, T)               ((T)LLT((jlong)(P) & ACR_INT64_C(0x00000000FFFFFFFF)))
 #else
-#define P2J(P)                  ((jlong)LLT(P)   & 0x00000000FFFFFFFFL)
-#define J2P(P, T)               ((T)LLT((jlong)P & 0x00000000FFFFFFFFL))
-#define I2P(P, T)               ((T)LLT((jint)P))
+#define P2J(P)                  ((jlong)LLT(P)     & ACR_INT64_C(0x00000000FFFFFFFF))
+#define J2P(P, T)               ((T)LLT((jlong)(P) & ACR_INT64_C(0x00000000FFFFFFFF)))
+#define I2P(P, T)               ((T)LLT((jint)(P)))
 #endif
 
 /* Integer to void* casting



Mime
View raw message