We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90def77 commit 93bbe9dCopy full SHA for 93bbe9d
src/main/java/com/jagex/runescape/cache/def/VarbitDefinition.java
@@ -20,10 +20,10 @@ public class VarbitDefinition extends CachedNode {
20
*/
21
public static int[] varbitMasks = new int[32];
22
static {
23
- int currentBit = 2;
24
- for(int index = 0; index < 32; index++) {
25
- varbitMasks[index] = currentBit - 1;
26
- currentBit += currentBit;
+ int currentBitAsDecimal = 2;
+ for(int currentBitPosition = 0; currentBitPosition < 32; currentBitPosition++) {
+ varbitMasks[currentBitPosition] = currentBitAsDecimal - 1;
+ currentBitAsDecimal += currentBitAsDecimal;
27
}
28
29
0 commit comments