From 384a55e188adbdd6b5fc8d03519a44c89a346600 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 3 Feb 2014 22:54:41 +0100 Subject: cppcheck: Clarify expression with parentheses Change-Id: I82cc35fd94ddff433319139d712254138e51daff --- hwpfilter/source/grammar.cxx | 4 ++-- 1 file 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) { -- cgit