You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2017/06/17 19:48:15 UTC
[4/5] commons-compress git commit: COMPRESS-411 actually use
formatLongBinary
COMPRESS-411 actually use formatLongBinary
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/02735ad7
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/02735ad7
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/02735ad7
Branch: refs/heads/master
Commit: 02735ad7e6313515a846bc15bcc89cf254f8161f
Parents: 137aa57
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sat Jun 17 21:47:10 2017 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sat Jun 17 21:47:10 2017 +0200
----------------------------------------------------------------------
.../java/org/apache/commons/compress/archivers/tar/TarUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/02735ad7/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java b/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
index 39ce5c1..d132d9d 100644
--- a/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
+++ b/src/main/java/org/apache/commons/compress/archivers/tar/TarUtils.java
@@ -484,8 +484,9 @@ public class TarUtils {
if (length < 9) {
formatLongBinary(value, buf, offset, length, negative);
+ } else {
+ formatBigIntegerBinary(value, buf, offset, length, negative);
}
- formatBigIntegerBinary(value, buf, offset, length, negative);
buf[offset] = (byte) (negative ? 0xff : 0x80);
return offset + length;