Index: native-src/shared/common/iohelp.c =================================================================== --- native-src/shared/common/iohelp.c.orig 2006-04-24 06:42:43.000000000 +0100 +++ native-src/shared/common/iohelp.c 2006-04-24 13:31:33.000000000 +0100 @@ -123,7 +123,7 @@ /* TODO: ARRAY PINNING */ #define INTERNAL_MAX 512 - U_8 internalBuffer[INTERNAL_MAX]; + jbyte internalBuffer[INTERNAL_MAX]; if (buffer == NULL) { @@ -179,7 +179,7 @@ if (result < 0) errorMessage = ioLookupErrorString (env, result); - if (buf != (jbyte*)internalBuffer) + if (buf != internalBuffer) { jclmem_free_memory (env, buf); } @@ -257,7 +257,7 @@ /* TODO: ARRAY PINNING */ #define INTERNAL_MAX 2048 - U_8 internalBuffer[INTERNAL_MAX]; + jbyte internalBuffer[INTERNAL_MAX]; PORT_ACCESS_FROM_ENV (env); @@ -316,7 +316,7 @@ if (result > 0) (*env)->SetByteArrayRegion (env, buffer, offset, result, buf); - if (buf != (jbyte*)internalBuffer) + if (buf != internalBuffer) { jclmem_free_memory (env, buf); }