bit_range_ops: replace "int" indexes with "shift_t" ones to avoid signing errors