Skip to content

Commit 5dba826

Browse files
committed
Better variable name
1 parent d838dc2 commit 5dba826

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/valueflow.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,16 +2399,16 @@ static void execute(const Token *expr,
23992399
if (!expr->astOperand1() || expr->astOperand1()->varId() == 0U)
24002400
*error = true;
24012401
else {
2402-
long long i;
2403-
if (!programMemory->getIntValue(expr->astOperand1()->varId(), &i))
2402+
long long intValue;
2403+
if (!programMemory->getIntValue(expr->astOperand1()->varId(), &intValue))
24042404
*error = true;
24052405
else {
2406-
if (i == 0 &&
2406+
if (intValue == 0 &&
24072407
expr->str() == "--" &&
24082408
expr->astOperand1()->variable() &&
24092409
expr->astOperand1()->variable()->typeStartToken()->isUnsigned())
24102410
*error = true; // overflow
2411-
*result = i + (expr->str() == "++" ? 1 : -1);
2411+
*result = intValue + (expr->str() == "++" ? 1 : -1);
24122412
programMemory->setIntValue(expr->astOperand1()->varId(), *result);
24132413
}
24142414
}

0 commit comments

Comments
 (0)