* java/util/zip/ZipEntry.java (setCrc): Fix overflow.
(setSize): ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32062
138bc75d-0d04-0410-961f-
82ee72b054a4
+2000-02-19 Bryce McKinlay <bryce@albatross.co.nz>
+
+ * java/util/zip/ZipEntry.java (setCrc): Fix overflow.
+ (setSize): ditto.
+
2000-02-18 Tom Tromey <tromey@cygnus.com>
* include/jvm.h (_Jv_GetJavaVM): Declare.
public void setCrc (long crc)
{
- if (crc < 0 || crc > 0xffffffff)
+ if (crc < 0 || crc > 0xffffffffL)
throw new IllegalArgumentException ();
this.crc = crc;
}
public void setSize (long size)
{
- if (size < 0 || size > 0xffffffff)
+ if (size < 0 || size > 0xffffffffL)
throw new IllegalArgumentException ();
this.size = size;
}