From c17710d2b096f15297204b39d67ffa431b70ab1d Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Tue, 24 Jul 2012 16:50:24 -0600 Subject: [PATCH] fix int32_t*/jint* type incompatibility in java-nio.cpp --- classpath/java-nio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classpath/java-nio.cpp b/classpath/java-nio.cpp index 17b249c502..a9a7088078 100644 --- a/classpath/java-nio.cpp +++ b/classpath/java-nio.cpp @@ -593,8 +593,8 @@ Java_java_nio_channels_DatagramChannel_receive(JNIEnv* e, } else if (r == 0) { return -1; } else { - e->SetIntArrayRegion(address, 0, 1, &host); - e->SetIntArrayRegion(address, 1, 1, &port); + jint jhost = host; e->SetIntArrayRegion(address, 0, 1, &jhost); + jint jport = port; e->SetIntArrayRegion(address, 1, 1, &jport); } return r;