UBSAN warning in r100: shift exponent 255 is too large for 32-bit type 'int'