diff --git a/src/util/hwf.cpp b/src/util/hwf.cpp index 89e218581..30ef36d3e 100644 --- a/src/util/hwf.cpp +++ b/src/util/hwf.cpp @@ -342,7 +342,7 @@ void hwf_manager::minimum(hwf const & x, hwf const & y, hwf & o) { _mm_store_sd(&o.value, _mm_min_sd(_mm_set_sd(x.value), _mm_set_sd(y.value))); #else // use __min ? - if (is_nan(x) || is_nan(x)) + if (is_nan(x)) o.value = y.value; else if (is_nan(y)) o.value = x.value;