ZipOutputStream.java (closeEntry): Fixed error caused by the incorrect casting of...
authorMo DeJong <mdejong@cygnus.com>
Tue, 29 Feb 2000 17:08:00 +0000 (17:08 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Tue, 29 Feb 2000 17:08:00 +0000 (17:08 +0000)
2000-02-28  Mo DeJong  <mdejong@cygnus.com>

* java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
error caused by the incorrect casting of a long to an int.

From-SVN: r32257

libjava/ChangeLog
libjava/java/util/zip/ZipOutputStream.java

index 99d822a9f2a309d1fce75022af5a748d38898fa0..80729f04a22a5a5b8c82ba55deba01bf08677653 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-28  Mo DeJong  <mdejong@cygnus.com>
+
+       * java/util/zip/ZipOutputStream.java(closeEntry) : Fixed
+       error caused by the incorrect casting of a long to an int.
+
 2000-02-28  Mo DeJong  <mdejong@cygnus.com>
 
        * java/util/zip/ZipOutputStream.java(write_entry) : Fixed
index 7c265ac1c631a3c79d6e4c710ff53c84de2f2f55..a8a3b1916621fc15197d2e0a51e6845696805d00 100644 (file)
@@ -30,7 +30,7 @@ public class ZipOutputStream extends DeflaterOutputStream
   {
     int uncompressed_size = def.getTotalIn();
     int compressed_size = def.getTotalOut();
-    int crc = (int) (filter.getChecksum().getValue());
+    long crc = filter.getChecksum().getValue();
 
     bytes_written += compressed_size;