From 41304c3e11934e105dbb82dd805bc4414ab952ac Mon Sep 17 00:00:00 2001 From: Yarik Briukhovetskyi <114298166+yariks5s@users.noreply.github.com> Date: Wed, 14 Feb 2024 14:08:20 +0100 Subject: [PATCH] Update src/Functions/FunctionBinaryArithmetic.h Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com> --- src/Functions/FunctionBinaryArithmetic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Functions/FunctionBinaryArithmetic.h b/src/Functions/FunctionBinaryArithmetic.h index fa2ff8fc275..967c2b73881 100644 --- a/src/Functions/FunctionBinaryArithmetic.h +++ b/src/Functions/FunctionBinaryArithmetic.h @@ -644,7 +644,8 @@ private: { if ((*right_nullmap)[0]) { - c[0] = ResultType(); + for (size_t i = 0; i < size; ++i) + c[i] = ResultType(); return; }