Skip to content

Commit a7c6fce

Browse files
committed
Keep handles positive for simplicity
1 parent 46208a4 commit a7c6fce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/cext/ValueWrapperManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public long totalHandleAllocations() {
165165
private static final int BLOCK_BYTE_SIZE = BLOCK_SIZE << TAG_BITS;
166166
private static final long BLOCK_MASK = -1L << BLOCK_BITS;
167167
private static final long OFFSET_MASK = ~BLOCK_MASK;
168-
private static final long ALLOCATION_BASE = 0xbad0L << 48;
168+
private static final long ALLOCATION_BASE = 0x0badL << 48;
169169

170170
protected static class HandleBlockAllocator {
171171

0 commit comments

Comments
 (0)