fix int32_t*/jint* type incompatibility in java-nio.cpp

This commit is contained in:
Joel Dice 2012-07-24 16:50:24 -06:00
parent 03c3182497
commit c17710d2b0

View File

@ -593,8 +593,8 @@ Java_java_nio_channels_DatagramChannel_receive(JNIEnv* e,
} else if (r == 0) { } else if (r == 0) {
return -1; return -1;
} else { } else {
e->SetIntArrayRegion(address, 0, 1, &host); jint jhost = host; e->SetIntArrayRegion(address, 0, 1, &jhost);
e->SetIntArrayRegion(address, 1, 1, &port); jint jport = port; e->SetIntArrayRegion(address, 1, 1, &jport);
} }
return r; return r;