use long math for long values

This commit is contained in:
Dave Brosius 2013-04-21 22:53:49 -04:00
parent 7d36c1e025
commit 8bb5487eab
1 changed files with 2 additions and 2 deletions

View File

@ -115,7 +115,7 @@ public class SlabAllocator extends Allocator
*/
public long getMinimumSize()
{
return unslabbed.get() + (regionCount - 1) * REGION_SIZE;
return unslabbed.get() + (regionCount - 1) * (long)REGION_SIZE;
}
/**
@ -123,7 +123,7 @@ public class SlabAllocator extends Allocator
*/
public long getMaximumSize()
{
return unslabbed.get() + regionCount * REGION_SIZE;
return unslabbed.get() + regionCount * (long)REGION_SIZE;
}
/**