From 527bf72d42527054d7cc1e3f18e061fd7cb5d2d8 Mon Sep 17 00:00:00 2001 From: "Christoph M. Wintersteiger" Date: Tue, 1 Sep 2020 15:22:01 +0000 Subject: [PATCH] Remove duplicate binary condition. Fixes #4668. --- src/util/hwf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;