Add long value to shift ints in order to avoid overflow