diff --git a/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java b/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java index 3c2ded474c..df988600de 100644 --- a/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java +++ b/hollow/src/main/java/com/netflix/hollow/core/memory/encoding/BlobByteBuffer.java @@ -159,7 +159,7 @@ public byte getByte(long index) throws BufferUnderflowException { */ public long getLong(long startByteIndex) throws BufferUnderflowException { - int alignmentOffset = (int)(startByteIndex - this.position()) % Long.BYTES; + int alignmentOffset = (int)((startByteIndex - this.position()) % Long.BYTES); long nextAlignedPos = startByteIndex - alignmentOffset + Long.BYTES; byte[] bytes = new byte[Long.BYTES];