Skip to content

Commit

Permalink
Fixed inc (++) and dec (--) to cause warnings when appropriate.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexikos committed Dec 30, 2011
1 parent 3550e45 commit e596304
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/script_expression.cpp
Expand Up @@ -745,6 +745,7 @@ LPTSTR Line::ExpandExpression(int aArgIndex, ResultType &aResult, ExprTokenType
{
if (right.symbol == SYM_VAR) // Thus due to the above check, it's a non-numeric target such as ++i when "i" is blank or contains text. This line was fixed in v1.0.46.16.
{
right.var->MaybeWarnUninitialized(); // This line should always be reached if the var is uninitialized.
right.var->Assign(); // If target var contains "" or "non-numeric text", make it blank. Clipboard is also supported here.
if (is_pre_op)
{
Expand Down

0 comments on commit e596304

Please sign in to comment.