fixed integer overflow in RangePartitioner