You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/12/07 07:54:49 UTC

svn commit: r887851 - /commons/sandbox/runtime/trunk/src/main/native/include/acr_private.h

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