Abbreviated{Long}ObjectId: Make operator precedence explicit

Change-Id: Iafd616d3fdc81ac3072f776061548be195270d85
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
This commit is contained in:
David Pursehouse 2019-06-08 16:25:32 +09:00
parent 9c97a586bf
commit 4e8a3df68f
2 changed files with 2 additions and 2 deletions

View File

@ -170,7 +170,7 @@ private static final long hexUInt64(final byte[] bs, int p, final int end) {
r |= RawParseUtils.parseHexInt4(bs[p++]);
n++;
}
return r << (16 - n) * 4;
return r << ((16 - n) * 4);
}
static long mask(int nibbles, long word, long v) {

View File

@ -162,7 +162,7 @@ private static final int hexUInt32(final byte[] bs, int p, final int end) {
r |= RawParseUtils.parseHexInt4(bs[p++]);
n++;
}
return r << (8 - n) * 4;
return r << ((8 - n) * 4);
}
static int mask(int nibbles, int word, int v) {