This is the mail archive of the java-patches@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: another zip fix from Mo


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;
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]