Skip to content

Commit 6240d22

Browse files
committed
Fix style: use shift instead of bit literal.
1 parent 3e50985 commit 6240d22

File tree

1 file changed

+5
-5
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext

1 file changed

+5
-5
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext/NativeWrappers.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ public String toString() {
163163

164164
public static class PrimitiveNativeWrapper extends DynamicObjectNativeWrapper {
165165

166-
public static final byte PRIMITIVE_STATE_BOOL = 0b00000001;
167-
public static final byte PRIMITIVE_STATE_BYTE = 0b00000010;
168-
public static final byte PRIMITIVE_STATE_INT = 0b00000100;
169-
public static final byte PRIMITIVE_STATE_LONG = 0b00001000;
170-
public static final byte PRIMITIVE_STATE_DOUBLE = 0b00010000;
166+
public static final byte PRIMITIVE_STATE_BOOL = 1 << 0;
167+
public static final byte PRIMITIVE_STATE_BYTE = 1 << 1;
168+
public static final byte PRIMITIVE_STATE_INT = 1 << 2;
169+
public static final byte PRIMITIVE_STATE_LONG = 1 << 3;
170+
public static final byte PRIMITIVE_STATE_DOUBLE = 1 << 4;
171171

172172
private final byte state;
173173
private final long value;

0 commit comments

Comments
 (0)