Skip to content

Commit

Permalink
AVRO-4051: Remove superfluous increments
Browse files Browse the repository at this point in the history
  • Loading branch information
belugabehr committed Sep 2, 2024
1 parent c7b79bf commit d4e2514
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public float readFloat() throws IOException {
ensureBounds(4);
int len = 1;
int n = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16)
| ((buf[pos + len++] & 0xff) << 24);
| ((buf[pos + len] & 0xff) << 24);
if ((pos + 4) > limit) {
throw new EOFException();
}
Expand All @@ -271,7 +271,7 @@ public double readDouble() throws IOException {
int n1 = (buf[pos] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16)
| ((buf[pos + len++] & 0xff) << 24);
int n2 = (buf[pos + len++] & 0xff) | ((buf[pos + len++] & 0xff) << 8) | ((buf[pos + len++] & 0xff) << 16)
| ((buf[pos + len++] & 0xff) << 24);
| ((buf[pos + len] & 0xff) << 24);
if ((pos + 8) > limit) {
throw new EOFException();
}
Expand Down

0 comments on commit d4e2514

Please sign in to comment.