mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Fix error (amend)
This commit is contained in:
parent
75ac3c96df
commit
acd0d9b34c
@ -107,10 +107,10 @@ bool equalsOp(A a, B b)
|
||||
/// different signedness
|
||||
|
||||
if constexpr (is_signed_v<A> && !is_signed_v<B>)
|
||||
return a >= 0 && static_cast<B>(a) == b;
|
||||
return a >= 0 && static_cast<make_unsigned_t<A>>(a) == b;
|
||||
|
||||
if constexpr (!is_signed_v<A> && is_signed_v<B>)
|
||||
return b >= 0 && a == static_cast<A>(b);
|
||||
return b >= 0 && a == static_cast<make_unsigned_t<B>>(b);
|
||||
}
|
||||
|
||||
/// int vs float
|
||||
|
Loading…
Reference in New Issue
Block a user