diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-02-03 22:54:41 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-02-03 23:03:57 +0100 |
commit | 384a55e188adbdd6b5fc8d03519a44c89a346600 (patch) | |
tree | 363dd9c06a39860ef9d140ab466d80a4e71b1200 | |
parent | 9a09e8174b98bc0f6cf089d87d63f8b137e9ac48 (diff) |
cppcheck: Clarify expression with parentheses
Change-Id: I82cc35fd94ddff433319139d712254138e51daff
-rw-r--r-- | hwpfilter/source/grammar.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hwpfilter/source/grammar.cxx b/hwpfilter/source/grammar.cxx index e10c5987d80e..4ff34a5eb751 100644 --- a/hwpfilter/source/grammar.cxx +++ b/hwpfilter/source/grammar.cxx @@ -1125,7 +1125,7 @@ yyerrlab: /* here on detecting error */ count = 0; /* Start X at -yyn if nec to avoid negative indexes in yycheck. */ - for (x = (yyn < 0 ? -yyn : 0); + for (x = ((yyn < 0) ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) size += strlen(yytname[x]) + 15, count++; @@ -1137,7 +1137,7 @@ yyerrlab: /* here on detecting error */ if (count < 5) { count = 0; - for (x = (yyn < 0 ? -yyn : 0); + for (x = ((yyn < 0) ? -yyn : 0); x < (sizeof(yytname) / sizeof(char *)); x++) if (yycheck[x + yyn] == x) { |