cache: fix writeBigSmart

This commit is contained in:
Adam
2017-12-28 20:59:17 -05:00
parent 1ec375f1d2
commit 54c61857c1
2 changed files with 3 additions and 1 deletions

View File

@@ -100,7 +100,7 @@ public final class OutputStream extends java.io.OutputStream
public void writeBigSmart(int value)
{
Preconditions.checkArgument(value >= 0);
if (value >= 65536)
if (value >= 32768)
{
ensureRemaining(4);
this.writeInt((1 << 31) | value);