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

@@ -170,7 +170,7 @@ public final class AbbreviatedLongObjectId implements Serializable {
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) {

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

@@ -162,7 +162,7 @@ public final class AbbreviatedObjectId implements Serializable {
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) {

Loading…
Cancel
Save