Skip to content

Commit

Permalink
Remove unnecessary bit operation.
Browse files Browse the repository at this point in the history
  • Loading branch information
viirya committed Feb 1, 2016
1 parent c1da4d4 commit 4b846dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ public static long encodePageNumberAndOffset(int pageNumber, long offsetInPage)

@VisibleForTesting
public static int decodePageNumber(long pagePlusOffsetAddress) {
return (int) ((pagePlusOffsetAddress & MASK_LONG_UPPER_13_BITS) >>> OFFSET_BITS);
return (int) (pagePlusOffsetAddress >>> OFFSET_BITS);
}

private static long decodeOffset(long pagePlusOffsetAddress) {
Expand Down

0 comments on commit 4b846dd

Please sign in to comment.