use >>>, not >>
This commit is contained in:
parent
e233fe1126
commit
2fa9e7bde9
3 changed files with 5 additions and 5 deletions
|
@ -8,7 +8,7 @@ final class ListPointer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int elementCount(int elementSizeAndCount) {
|
public static int elementCount(int elementSizeAndCount) {
|
||||||
return elementSizeAndCount >> 3;
|
return elementSizeAndCount >>> 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int inlineCompositeWordCount(int elementSizeAndCount) {
|
public static int inlineCompositeWordCount(int elementSizeAndCount) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ final class StructPointer{
|
||||||
}
|
}
|
||||||
|
|
||||||
public static short ptrCount(int structRef) {
|
public static short ptrCount(int structRef) {
|
||||||
return (short)(structRef >> 16);
|
return (short)(structRef >>> 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int wordSize(int structRef) {
|
public static int wordSize(int structRef) {
|
||||||
|
|
|
@ -21,7 +21,7 @@ final class WirePointer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int target(int offset, long wirePointer) {
|
public static int target(int offset, long wirePointer) {
|
||||||
return offset + 1 + (offsetAndKind(wirePointer) >> 2);
|
return offset + 1 + (offsetAndKind(wirePointer) >>> 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setKindAndTarget(ByteBuffer buffer, int offset, byte kind, int targetOffset) {
|
public static void setKindAndTarget(ByteBuffer buffer, int offset, byte kind, int targetOffset) {
|
||||||
|
@ -30,7 +30,7 @@ final class WirePointer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int inlineCompositeListElementCount(long wirePointer) {
|
public static int inlineCompositeListElementCount(long wirePointer) {
|
||||||
return offsetAndKind(wirePointer) >> 2;
|
return offsetAndKind(wirePointer) >>> 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void setKindAndInlineCompositeListElementCount(ByteBuffer buffer,
|
public static void setKindAndInlineCompositeListElementCount(ByteBuffer buffer,
|
||||||
|
@ -41,7 +41,7 @@ final class WirePointer {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int upper32Bits(long wirePointer) {
|
public static int upper32Bits(long wirePointer) {
|
||||||
return (int)(wirePointer >> 32);
|
return (int)(wirePointer >>> 32);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static int listPointer(long wirePointer) {
|
public static int listPointer(long wirePointer) {
|
||||||
|
|
Loading…
Reference in a new issue