mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +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
|
/// different signedness
|
||||||
|
|
||||||
if constexpr (is_signed_v<A> && !is_signed_v<B>)
|
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>)
|
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
|
/// int vs float
|
||||||
|
Loading…
Reference in New Issue
Block a user