harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r396879 - /incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c
Date Tue, 25 Apr 2006 13:23:32 GMT
Author: tellison
Date: Tue Apr 25 06:23:18 2006
New Revision: 396879

URL: http://svn.apache.org/viewcvs?rev=396879&view=rev
Log:
Apply patch HARMONY-406 (internalBuffer in iohelp.c is always used in a signed context so
should be signed)

Modified:
    incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c

Modified: incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c?rev=396879&r1=396878&r2=396879&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c (original)
+++ incubator/harmony/enhanced/classlib/trunk/native-src/shared/common/iohelp.c Tue Apr 25
06:23:18 2006
@@ -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);
     }



Mime
View raw message