--- a/jdk/src/share/native/java/nio/Bits.c Thu Jul 24 12:40:30 2008 +0100
+++ b/jdk/src/share/native/java/nio/Bits.c Thu Jul 24 12:46:41 2008 +0100
@@ -116,7 +116,7 @@
jshort *srcShort, *dstShort, *endShort;
jshort tmpShort;
- dstShort = (jshort *)dstAddr;
+ dstShort = (jshort *)jlong_to_ptr(dstAddr);
while (length > 0) {
/* do not change this if-else statement, see WARNING above */
@@ -151,7 +151,7 @@
jshort *srcShort, *dstShort, *endShort;
jshort tmpShort;
- srcShort = (jshort *)srcAddr;
+ srcShort = (jshort *)jlong_to_ptr(srcAddr);
while (length > 0) {
/* do not change this if-else statement, see WARNING above */
@@ -186,7 +186,7 @@
jint *srcInt, *dstInt, *endInt;
jint tmpInt;
- dstInt = (jint *)dstAddr;
+ dstInt = (jint *)jlong_to_ptr(dstAddr);
while (length > 0) {
/* do not change this code, see WARNING above */
@@ -221,7 +221,7 @@
jint *srcInt, *dstInt, *endInt;
jint tmpInt;
- srcInt = (jint *)srcAddr;
+ srcInt = (jint *)jlong_to_ptr(srcAddr);
while (length > 0) {
/* do not change this code, see WARNING above */
@@ -256,7 +256,7 @@
jlong *srcLong, *dstLong, *endLong;
jlong tmpLong;
- dstLong = (jlong *)dstAddr;
+ dstLong = (jlong *)jlong_to_ptr(dstAddr);
while (length > 0) {
/* do not change this code, see WARNING above */
@@ -291,7 +291,7 @@
jlong *srcLong, *dstLong, *endLong;
jlong tmpLong;
- srcLong = (jlong *)srcAddr;
+ srcLong = (jlong *)jlong_to_ptr(srcAddr);
while (length > 0) {
/* do not change this code, see WARNING above */