coverity#1158214 Assign instead of compare

Change-Id: Iaf1fd2a1b37338acef9c110e20911503255e8167
This commit is contained in:
Caolán McNamara
2014-01-24 13:20:21 +00:00
parent 949ad7ac99
commit cbff9d45e4

View File

@@ -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)