mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
if constexpr
This commit is contained in:
parent
221919f46c
commit
3d078e2c8c
@ -98,7 +98,7 @@ void compressDataForType(const char * source, UInt32 source_size, char * dest)
|
||||
unalignedStore<T>(dest, gcd_divider);
|
||||
dest += sizeof(T);
|
||||
|
||||
if (sizeof(T) <= 8)
|
||||
if constexpr (sizeof(T) <= 8)
|
||||
{
|
||||
/// libdivide support only UInt32 and UInt64.
|
||||
using LibdivideT = std::conditional_t<sizeof(T) <= 4, UInt32, UInt64>;
|
||||
|
Loading…
Reference in New Issue
Block a user