cppcheck: Clarify expression with parentheses

Change-Id: I82cc35fd94ddff433319139d712254138e51daff
This commit is contained in:
Julien Nabet
2014-02-03 22:54:41 +01:00
parent 9a09e8174b
commit 384a55e188

View File

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