Skip to content

Commit

Permalink
Replace constant 8 with SIZE_OF_LONG
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyu committed May 6, 2015
1 parent 75a467b commit 817e3f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public static boolean anySet(Object baseObject, long baseOffset, long bitSetWidt
assert bitSetWidthInBytes % SIZE_OF_LONG == 0;
int widthInLong = (int)(bitSetWidthInBytes / SIZE_OF_LONG);
long addr = baseOffset;
for (int i = 0; i <= widthInLong; i++, addr += 8) {
for (int i = 0; i <= widthInLong; i++, addr += SIZE_OF_LONG) {
if (PlatformDependent.UNSAFE.getLong(baseObject, addr) != 0) {
return true;
}
Expand Down

0 comments on commit 817e3f9

Please sign in to comment.