ascent icon indicating copy to clipboard operation
ascent copied to clipboard

Overzealous narrowing warning now error

Open agcapps opened this issue 5 months ago • 0 comments

https://github.com/Alpine-DAV/ascent/blob/e504a28c7a1a6d89b40fa9db17a19fc21d1e7b35/src/libs/dray/rendering/renderer.cpp#L353

Here, my compiler errors out because e.g. 0.1 * 2.0 - 1.0 is a double literal getting stored as a float32. The compiler suggests using static_cast<float32>( ).

Grumpy, because I see no harm, but the compiler treats it as an error.

agcapps avatar Aug 29 '24 17:08 agcapps