Patch: another zip fix from Mo
Tom Tromey
tromey@cygnus.com
Tue Feb 29 09:07:00 GMT 2000
I'm checking in this patch. It fixes another bug in ZipOutputStream
that was caught by Mo.
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.
Tom
Index: java/util/zip/ZipOutputStream.java
===================================================================
RCS file: /cvs/java/libgcj/libjava/java/util/zip/ZipOutputStream.java,v
retrieving revision 1.5
diff -u -r1.5 ZipOutputStream.java
--- ZipOutputStream.java 2000/02/29 17:04:35 1.5
+++ ZipOutputStream.java 2000/02/29 17:06:48
@@ -30,7 +30,7 @@
{
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;
More information about the Java-patches
mailing list