harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r530933 - /harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/adler32.c
Date Fri, 20 Apr 2007 21:51:33 GMT
Author: tellison
Date: Fri Apr 20 14:51:33 2007
New Revision: 530933

URL: http://svn.apache.org/viewvc?view=rev&rev=530933
Log:
Apply patch HARMONY-3710 ([classlib][archive] java.util.zip.Adler32.updateByteImpl(int val,
long adler1) return wrong value in big-endian platform)

Modified:
    harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/adler32.c

Modified: harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/adler32.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/adler32.c?view=diff&rev=530933&r1=530932&r2=530933
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/adler32.c
(original)
+++ harmony/enhanced/classlib/trunk/modules/archive/src/main/native/archive/shared/adler32.c
Fri Apr 20 14:51:33 2007
@@ -43,6 +43,6 @@
                                            jint val, jlong crc)
 {
   PORT_ACCESS_FROM_ENV (env);
-
-  return adler32 ((uLong) crc, (Bytef *) (&val), 1);
+  Bytef bytefVal = val;
+  return adler32 ((uLong) crc, (Bytef *) (&bytefVal), 1);
 }



Mime
View raw message