File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments