Fix rtengine::min() for NaNs (#3742)

Also fix `LuminanceToneCurve::Apply()`. Kudos to @heckflosse!
This commit is contained in:
Flössie
2017-03-08 20:23:57 +01:00
parent 06137b02be
commit 61b913f7f9
2 changed files with 4 additions and 3 deletions

View File

@@ -42,7 +42,7 @@ constexpr const T& min(const T& a)
template<typename T>
constexpr const T& min(const T& a, const T& b)
{
return a < b ? a : b;
return b < a ? b : a;
}
template<typename T, typename... ARGS>