Commit fee2681f by Mo DeJong Committed by Tom Tromey

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(closeEntry) : Fixed
	error caused by the incorrect casting of a long to an int.

From-SVN: r32257
parent f8b7a5d2
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
SIGSEV caused by use of the wrong instance variable.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment