Skip to content

Commit

Permalink
Add explicit int/long cast in TypedSet
Browse files Browse the repository at this point in the history
This silences a warning from IntelliJ, (and the re-wrapping of the
line makes sure you can see the whole expression in a reasonable-sized
window).
  • Loading branch information
jirassimok authored and findepi committed Nov 22, 2021
1 parent dbe03a7 commit 131f91b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ private TypedSet(

public long getRetainedSizeInBytes()
{
return INSTANCE_SIZE + INT_ARRAY_LIST_INSTANCE_SIZE + elementBlock.getRetainedSizeInBytes() + blockPositionByHash.size() * Integer.BYTES;
return INSTANCE_SIZE
+ INT_ARRAY_LIST_INSTANCE_SIZE
+ elementBlock.getRetainedSizeInBytes()
+ blockPositionByHash.size() * (long) Integer.BYTES;
}

public boolean contains(Block block, int position)
Expand Down

0 comments on commit 131f91b

Please sign in to comment.