Browse Source

Abbreviated{Long}ObjectId: Make operator precedence explicit

Change-Id: Iafd616d3fdc81ac3072f776061548be195270d85
Signed-off-by: David Pursehouse <david.pursehouse@gmail.com>
tags/v5.4.0.201906121030-r
David Pursehouse 5 years ago
parent
commit
4e8a3df68f

+ 1
- 1
org.eclipse.jgit.lfs/src/org/eclipse/jgit/lfs/lib/AbbreviatedLongObjectId.java View File

r |= RawParseUtils.parseHexInt4(bs[p++]); r |= RawParseUtils.parseHexInt4(bs[p++]);
n++; n++;
} }
return r << (16 - n) * 4;
return r << ((16 - n) * 4);
} }


static long mask(int nibbles, long word, long v) { static long mask(int nibbles, long word, long v) {

+ 1
- 1
org.eclipse.jgit/src/org/eclipse/jgit/lib/AbbreviatedObjectId.java View File

r |= RawParseUtils.parseHexInt4(bs[p++]); r |= RawParseUtils.parseHexInt4(bs[p++]);
n++; n++;
} }
return r << (8 - n) * 4;
return r << ((8 - n) * 4);
} }


static int mask(int nibbles, int word, int v) { static int mask(int nibbles, int word, int v) {

Loading…
Cancel
Save