Skip to content
  • David Gobbi's avatar
    b1425185
    Fix incorrect conversion in TestYIQToRGB · b1425185
    David Gobbi authored
    The test performed the conversions using `unsigned char`, which is
    incorrect because the IQ components of YIQ are signed values.  The
    conversion should be perfomed, ideally, with a floating-point type.
    
    The problem was identified with UBSan, which detected the attempt
    to store signed values in an unsigned integer.
    b1425185
    Fix incorrect conversion in TestYIQToRGB
    David Gobbi authored
    The test performed the conversions using `unsigned char`, which is
    incorrect because the IQ components of YIQ are signed values.  The
    conversion should be perfomed, ideally, with a floating-point type.
    
    The problem was identified with UBSan, which detected the attempt
    to store signed values in an unsigned integer.
Loading