mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-25 11:10:49 +00:00
Simplification
This commit is contained in:
parent
acd0d9b34c
commit
77ebbdaeda
@ -93,9 +93,8 @@ bool equalsOp(A a, B b)
|
||||
return a == b;
|
||||
|
||||
/// anything vs NaN
|
||||
if constexpr (std::is_floating_point_v<A> || std::is_floating_point_v<B>)
|
||||
if (isNaN(a) || isNaN(b))
|
||||
return false;
|
||||
if (isNaN(a) || isNaN(b))
|
||||
return false;
|
||||
|
||||
/// int vs int
|
||||
if constexpr (is_integer_v<A> && is_integer_v<B>)
|
||||
|
Loading…
Reference in New Issue
Block a user