From cbff9d45e47a9d8e28a1570c45c3e4617a638ad1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 24 Jan 2014 13:20:21 +0000 Subject: [PATCH] coverity#1158214 Assign instead of compare Change-Id: Iaf1fd2a1b37338acef9c110e20911503255e8167 --- sc/source/core/opencl/op_math.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)