From a7f666c07ba3a24a73735b23f83c9def748c35e9 Mon Sep 17 00:00:00 2001 From: Maksim Kita Date: Fri, 21 Jan 2022 11:26:39 +0000 Subject: [PATCH] FunctionBase64Conversion warning fix --- src/Functions/FunctionBase64Conversion.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Functions/FunctionBase64Conversion.h b/src/Functions/FunctionBase64Conversion.h index e257199b7c8..a1d6b966660 100644 --- a/src/Functions/FunctionBase64Conversion.h +++ b/src/Functions/FunctionBase64Conversion.h @@ -128,20 +128,20 @@ public: * Some bug in sse arm64 implementation? * `base64Encode(repeat('a', 46))` returns wrong padding character */ -#if (__aarch64__) - outlen = tb64senc(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); +#if defined(__aarch64__) + outlen = tb64senc(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); #else - outlen = _tb64e(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); + outlen = _tb64e(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); #endif } else if constexpr (std::is_same_v) { if (srclen > 0) { -#if (__aarch64__) - outlen = tb64sdec(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); +#if defined(__aarch64__) + outlen = tb64sdec(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); #else - outlen = _tb64d(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); + outlen = _tb64d(reinterpret_cast(source), srclen, reinterpret_cast(dst_pos)); #endif if (!outlen)