diff --git a/dbms/src/IO/Compression/CompressionCodecDeltaFor.cpp b/dbms/src/IO/Compression/CompressionCodecDeltaFor.cpp index fbbbf4f9eec..29c4b6f323a 100644 --- a/dbms/src/IO/Compression/CompressionCodecDeltaFor.cpp +++ b/dbms/src/IO/Compression/CompressionCodecDeltaFor.cpp @@ -55,6 +55,7 @@ namespace template UInt32 compressData(const char * source, UInt32 source_size, char * dest) { + static_assert(std::is_integral::value, "Integral required."); const auto count = source_size / sizeof(T); using ST = typename std::make_signed::type; std::vector deltas;