mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fixed test, try 2 #3914
This commit is contained in:
parent
877750cd6a
commit
a868180516
@ -139,7 +139,7 @@ struct IntegerRoundingComputation
|
||||
|
||||
static ALWAYS_INLINE void compute(const T * __restrict in, size_t scale, T * __restrict out)
|
||||
{
|
||||
if (scale > std::make_unsigned_t<T>(std::numeric_limits<T>::max()))
|
||||
if (sizeof(T) <= sizeof(scale) && scale > size_t(std::numeric_limits<T>::max()))
|
||||
*out = 0;
|
||||
else
|
||||
*out = compute(*in, scale);
|
||||
|
Loading…
Reference in New Issue
Block a user