From b0ba8c02bef755e22e37c3eca192381607461fe2 Mon Sep 17 00:00:00 2001 From: Joanna Hulboj Date: Sat, 21 Jan 2023 11:35:17 +0000 Subject: [PATCH] FIXUP: Darwin compilation issue --- src/Functions/array/arrayShuffle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions/array/arrayShuffle.cpp b/src/Functions/array/arrayShuffle.cpp index 9f95c7f67f1..b2432e650c4 100644 --- a/src/Functions/array/arrayShuffle.cpp +++ b/src/Functions/array/arrayShuffle.cpp @@ -123,7 +123,7 @@ ColumnPtr FunctionArrayShuffleImpl::executeImpl(const ColumnsWithTypeAnd }(); pcg64_fast rng(seed); - size_t limit = [&] + size_t limit = [&]() -> size_t { if constexpr (Traits::has_limit) { @@ -133,7 +133,7 @@ ColumnPtr FunctionArrayShuffleImpl::executeImpl(const ColumnsWithTypeAnd return val->getUInt(0); } } - return static_cast(0); + return 0; }(); return executeGeneric(*array, rng, limit);