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
This commit is contained in:
Mo DeJong 2000-02-29 17:08:00 +00:00 committed by Tom Tromey
parent f8b7a5d26b
commit fee2681f8a
2 changed files with 6 additions and 1 deletions

View 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

View 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;