diff --git a/dbms/src/Functions/FunctionsCoding.h b/dbms/src/Functions/FunctionsCoding.h index da5c15b296a..b94aea34c2d 100644 --- a/dbms/src/Functions/FunctionsCoding.h +++ b/dbms/src/Functions/FunctionsCoding.h @@ -1,5 +1,4 @@ #pragma once -#include #include #include @@ -1606,10 +1605,10 @@ public: /** Using a 32 bits variable with a 32 shits or more is considered as UB * with a 64 bits type casting solve the problem if the cidr mask = 0 - * Reference : aSO/IEC 9899:1999 6.5.7 Bitwise shift operators + * Reference : ISO/IEC 9899:1999 6.5.7 Bitwise shift operators P.3 */ - UInt64 src_byte_shift = (static_cast(src) >> shifts_bits) << shifts_bits; - UInt64 cidr_mask_byte_shift = static_cast(byte_reference) >> (bits_to_keep); + const UInt64 src_byte_shift = (static_cast(src) >> shifts_bits) << shifts_bits; + const UInt64 cidr_mask_byte_shift = static_cast(byte_reference) >> (bits_to_keep); return static_cast(src_byte_shift | cidr_mask_byte_shift); }