OSDN Git Service

2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
authorbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Feb 2000 02:54:14 +0000 (02:54 +0000)
committerbryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 19 Feb 2000 02:54:14 +0000 (02:54 +0000)
        * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
        (setSize): ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32062 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/java/util/zip/ZipEntry.java

index fb2e46a..7ff9c1c 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-19  Bryce McKinlay  <bryce@albatross.co.nz>
+
+       * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
+       (setSize): ditto.
+
 2000-02-18  Tom Tromey  <tromey@cygnus.com>
 
        * include/jvm.h (_Jv_GetJavaVM): Declare.
index b2a010f..6e22885 100644 (file)
@@ -94,7 +94,7 @@ public class ZipEntry implements ZipConstants
 
   public void setCrc (long crc) 
   {
-    if (crc < 0 || crc > 0xffffffff)
+    if (crc < 0 || crc > 0xffffffffL)
       throw new IllegalArgumentException ();
     this.crc = crc;
   }
@@ -115,7 +115,7 @@ public class ZipEntry implements ZipConstants
 
   public void setSize (long size)
   {
-    if (size < 0 || size > 0xffffffff)
+    if (size < 0 || size > 0xffffffffL)
       throw new IllegalArgumentException ();
     this.size = size;
   }