mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-02 12:32:04 +00:00
fix syntax
This commit is contained in:
parent
7449c87a14
commit
4dd9eb193b
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user