actually use formatLongBinary
@@ -484,8 +484,9 @@ public static int formatLongOctalOrBinaryBytes(
if (length < 9) {
formatLongBinary(value, buf, offset, length, negative);
- }
+ } else {
formatBigIntegerBinary(value, buf, offset, length, negative);
+ }
buf[offset] = (byte) (negative ? 0xff : 0x80);
return offset + length;
