diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx index 9b7dca065a6d..1c8c717fb307 100644 --- a/sc/source/core/opencl/op_math.cxx +++ b/sc/source/core/opencl/op_math.cxx @@ -2051,8 +2051,7 @@ void OpSumIf::GenSlidingWindowFunction(std::stringstream &ss, { ss << "\ndouble " << sSymName; ss << "_"<< BinFuncName() <<"("; - int flag = 0; - (3 == vSubArguments.size()) && (flag = 2); + int flag = 3 == vSubArguments.size() ? 2 : 0; for (unsigned i = 0; i < vSubArguments.size(); i++) { if (i)