File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/cext Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -163,11 +163,11 @@ public String toString() {
163
163
164
164
public static class PrimitiveNativeWrapper extends DynamicObjectNativeWrapper {
165
165
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 ;
171
171
172
172
private final byte state ;
173
173
private final long value ;
You can’t perform that action at this time.
0 commit comments