From 3d078e2c8c0fb8962301a9c0c2899745abe9b81d Mon Sep 17 00:00:00 2001 From: seshWCS Date: Tue, 5 Sep 2023 12:33:51 +0000 Subject: [PATCH] if constexpr --- src/Compression/CompressionCodecGCD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;