RawTherapee compilation error under macOS Mojave rcd_demosaic.cc:192 error: value is not contextually convertible to 'bool'

Looks good now, thanks a lot!

1 Like

With this commit, older clang versions should work as well
https://github.com/Beep6581/RawTherapee/commit/46a22f71105e49a8fcd168e64678739778735923

@heckflosse

 /Users/rb/repo-rt/rtengine/iplocallab.cc:403:12: error: value of type '__attribute__((__vector_size__(4 * sizeof(int)))) int' (vector of 4 'int' values) is not contextually convertible to 'bool'
    return x <= g2 ? x / s : pow_F((x + g4) / (1.f + g4), p);//continuous

           ^~~~~~~
/Users/rb/repo-rt/rtengine/iplocallab.cc:415:12: error: value of type '__attribute__((__vector_size__(4 * sizeof(int)))) int' (vector of 4 'int' values) is not contextually convertible to 'bool'
    return x <= g3 ? x * s : (1.f + g4) * xexpf(xlogf(x) / p) - g4;//continuous
           ^~~~~~~



Greetings @heckflosse @jdc

This error is showing up again with AppleClang1200 now in iplocallab.cc on macOS.

I will fix this.

1 Like