Should this be a for ? for(; rangeSize > 0; rangeSize -= limitedSize) ?