From 4dd9eb193b51b36b801b14b9146704b3a66e4bf9 Mon Sep 17 00:00:00 2001 From: daoready Date: Fri, 24 Aug 2018 08:27:44 +0300 Subject: [PATCH] fix syntax --- dbms/src/Functions/FunctionsHigherOrder.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dbms/src/Functions/FunctionsHigherOrder.h b/dbms/src/Functions/FunctionsHigherOrder.h index 62d3454308f..08037c71e56 100644 --- a/dbms/src/Functions/FunctionsHigherOrder.h +++ b/dbms/src/Functions/FunctionsHigherOrder.h @@ -874,8 +874,8 @@ struct ArrayCumSumLimitedImpl for (; pos < offsets[i]; ++pos) { res_values[pos] = res_values[pos - 1] + x; - if(res_values[pos]<0){ - res_values[pos] = 0 ; + if(res_values[pos] < 0){ + res_values[pos] = 0; } } } @@ -902,8 +902,8 @@ struct ArrayCumSumLimitedImpl for (++pos; pos < offsets[i]; ++pos) { res_values[pos] = res_values[pos - 1] + data[pos]; - if(res_values[pos]<0){ - res_values[pos] = 0 ; + if(res_values[pos] < 0){ + res_values[pos] = 0; } } }