diff --git a/src/Compression/CompressionCodecGCD.cpp b/src/Compression/CompressionCodecGCD.cpp index 06c8cfc0b9a..7c6e4d86f6c 100644 --- a/src/Compression/CompressionCodecGCD.cpp +++ b/src/Compression/CompressionCodecGCD.cpp @@ -98,7 +98,7 @@ void compressDataForType(const char * source, UInt32 source_size, char * dest) unalignedStore(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;