value of type '__attribute__((__vector_size__(4 * sizeof(int)))) int' (vector of 4 'int' values) is not contextually convertible to 'bool'

Issue #145 resolved
Yuri Vic created an issue

clang-10 fails to compile ART:

/wrkdirs/usr/ports/graphics/art/work/agriggio-art-b2d77c8f0080/rtengine/rcd_demosaic.cc:195:44: error: value of type '__attribute__((__vector_size__(4 * sizeof(int)))) int' (vector of 4 'int' values) is not contextually convertible to 'bool'
                    const vfloat VH_Disc = vabsf(0.5f - VH_Central_Value) < vabsf(0.5f - VH_Neighbourhood_Value) ? VH_Neighbourhood_Value : VH_Central_Value;
                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Log: http://beefy6.nyi.freebsd.org/data/121amd64-default/555803/logs/art-raw-image-editor-1.5.4.20201118.log

rev. b2d77c8f0080

Comments (2)

  1. Log in to comment