From 2e8d42a1882a82d718723098c605908c7dde1f96 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Sun, 16 Feb 2020 13:44:24 +0300 Subject: [PATCH] Additions to prev. revision --- dbms/src/Functions/FunctionBitTestMany.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Functions/FunctionBitTestMany.h b/dbms/src/Functions/FunctionBitTestMany.h index f358661ef7..a9155ebf98 100644 --- a/dbms/src/Functions/FunctionBitTestMany.h +++ b/dbms/src/Functions/FunctionBitTestMany.h @@ -182,14 +182,14 @@ private: const auto & pos = pos_col->getData(); for (const auto i : ext::range(0, mask.size())) - mask[i] = mask[i] | (PosType(1) << pos[i]); + mask[i] = mask[i] | (UInt64(1) << pos[i]); return true; } else if (const auto pos_col_const = checkAndGetColumnConst>(pos_col_untyped)) { const auto & pos = pos_col_const->template getValue(); - const auto new_mask = PosType(1) << pos; + const auto new_mask = UInt64(1) << pos; for (const auto i : ext::range(0, mask.size())) mask[i] = mask[i] | new_mask; -- GitLab