This is the mail archive of the
java-patches@sourceware.cygnus.com
mailing list for the Java project.
Patch: another zip fix from Mo
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: another zip fix from Mo
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 29 Feb 2000 10:08:20 -0700
- Reply-To: tromey at cygnus dot com
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;