Kaydet (Commit) 384a55e1 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: Clarify expression with parentheses

Change-Id: I82cc35fd94ddff433319139d712254138e51daff
üst 9a09e817
...@@ -1125,7 +1125,7 @@ yyerrlab: /* here on detecting error */ ...@@ -1125,7 +1125,7 @@ yyerrlab: /* here on detecting error */
count = 0; count = 0;
/* Start X at -yyn if nec to avoid negative indexes in yycheck. */ /* 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++) x < (sizeof(yytname) / sizeof(char *)); x++)
if (yycheck[x + yyn] == x) if (yycheck[x + yyn] == x)
size += strlen(yytname[x]) + 15, count++; size += strlen(yytname[x]) + 15, count++;
...@@ -1137,7 +1137,7 @@ yyerrlab: /* here on detecting error */ ...@@ -1137,7 +1137,7 @@ yyerrlab: /* here on detecting error */
if (count < 5) if (count < 5)
{ {
count = 0; count = 0;
for (x = (yyn < 0 ? -yyn : 0); for (x = ((yyn < 0) ? -yyn : 0);
x < (sizeof(yytname) / sizeof(char *)); x++) x < (sizeof(yytname) / sizeof(char *)); x++)
if (yycheck[x + yyn] == x) if (yycheck[x + yyn] == x)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment