[kaffe] CVS kaffe (robilad): Fixes for Adler32

Kaffe CVS cvs-commits at kaffe.org
Fri Sep 9 14:27:54 PDT 2005


PatchSet 6888 
Date: 2005/09/09 21:08:47
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixes for Adler32

2005-09-09  Mark Wielaard  <mark at klomp.org>

        * libraries/javalib/java/util/zip/Adler32.java
        (Adler32): Set adler to 1.
        (reset): Likewise.
        (getValue): Return unsigned int value.

Members: 
	ChangeLog:1.4409->1.4410 
	libraries/javalib/java/util/zip/Adler32.java:1.1->1.2 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4409 kaffe/ChangeLog:1.4410
--- kaffe/ChangeLog:1.4409	Fri Sep  9 15:54:14 2005
+++ kaffe/ChangeLog	Fri Sep  9 21:08:47 2005
@@ -1,3 +1,10 @@
+2005-09-09  Mark Wielaard  <mark at klomp.org>
+
+        * libraries/javalib/java/util/zip/Adler32.java
+        (Adler32): Set adler to 1.
+        (reset): Likewise.
+        (getValue): Return unsigned int value.
+
 2005-09-09  Kurt Miller <truk at optonline.net>
 
 	* configure.ac: Don't check for functions to set 
Index: kaffe/libraries/javalib/java/util/zip/Adler32.java
diff -u kaffe/libraries/javalib/java/util/zip/Adler32.java:1.1 kaffe/libraries/javalib/java/util/zip/Adler32.java:1.2
--- kaffe/libraries/javalib/java/util/zip/Adler32.java:1.1	Tue Jul 14 17:02:10 1998
+++ kaffe/libraries/javalib/java/util/zip/Adler32.java	Fri Sep  9 21:08:52 2005
@@ -20,7 +20,7 @@
 
   public Adler32()
   {
-    adler = 0;
+    adler = 1;
   }
 
   public void update(int b)
@@ -35,12 +35,12 @@
 
   public void reset()
   {
-    adler = 0;
+    adler = 1;
   }
 
   public long getValue()
   {
-    return (adler);
+    return (adler & 0xFFFFFFFFL);
   }
 
   public native void update(byte[] buf, int from, int len);




More information about the kaffe mailing list