From 77ebbdaeda92098de72d2d47a16fc283b5f924ee Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Wed, 5 May 2021 02:09:32 +0300 Subject: [PATCH] Simplification --- src/Core/AccurateComparison.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Core/AccurateComparison.h b/src/Core/AccurateComparison.h index 5f4d820a907..8b039020a19 100644 --- a/src/Core/AccurateComparison.h +++ b/src/Core/AccurateComparison.h @@ -93,9 +93,8 @@ bool equalsOp(A a, B b) return a == b; /// anything vs NaN - if constexpr (std::is_floating_point_v || std::is_floating_point_v) - if (isNaN(a) || isNaN(b)) - return false; + if (isNaN(a) || isNaN(b)) + return false; /// int vs int if constexpr (is_integer_v && is_integer_v)