fix syntax

This commit is contained in:
daoready 2018-08-24 08:27:44 +03:00
parent 7449c87a14
commit 4dd9eb193b

View File

@ -874,8 +874,8 @@ struct ArrayCumSumLimitedImpl
for (; pos < offsets[i]; ++pos) for (; pos < offsets[i]; ++pos)
{ {
res_values[pos] = res_values[pos - 1] + x; res_values[pos] = res_values[pos - 1] + x;
if(res_values[pos]<0){ if(res_values[pos] < 0){
res_values[pos] = 0 ; res_values[pos] = 0;
} }
} }
} }
@ -902,8 +902,8 @@ struct ArrayCumSumLimitedImpl
for (++pos; pos < offsets[i]; ++pos) for (++pos; pos < offsets[i]; ++pos)
{ {
res_values[pos] = res_values[pos - 1] + data[pos]; res_values[pos] = res_values[pos - 1] + data[pos];
if(res_values[pos]<0){ if(res_values[pos] < 0){
res_values[pos] = 0 ; res_values[pos] = 0;
} }
} }
} }