Fix data type of values to shift