7z UINT64 may turn out to become negative longs
@@ -1614,7 +1614,7 @@ public String getDefaultName() {
}
private static void assertFitsIntoInt(String what, long value) throws IOException {
- if (value > Integer.MAX_VALUE) {
+ if (value > Integer.MAX_VALUE || value < Integer.MIN_VALUE) {
throw new IOException("Cannot handle " + what + " " + value);
}
}
