aboutsummaryrefslogtreecommitdiffstats
path: root/qv4ir.cpp
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2012-12-12 22:46:57 +0100
committerErik Verbruggen <erik.verbruggen@digia.com>2012-12-12 14:57:43 +0100
commit42ebe165489b5429d1e1dc9f850bbf7d37dd127f (patch)
tree215f2a078431b3a60250a20065cb6b4047bf47ab /qv4ir.cpp
parent8b9a17e97c67eac5163b25eab4ededdfdf6e9354 (diff)
Fix increment and decrement operators
These operators have semantics that are different from (foo + 1), as they always convert the LHS to a number first. Change-Id: I3fb4a1a328e3dfcb334875435c3cec90d01b67dd Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'qv4ir.cpp')
-rw-r--r--qv4ir.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qv4ir.cpp b/qv4ir.cpp
index 3cceeb8680..33b8b7721d 100644
--- a/qv4ir.cpp
+++ b/qv4ir.cpp
@@ -73,6 +73,8 @@ const char *opname(AluOp op)
case OpUMinus: return "-";
case OpUPlus: return "+";
case OpCompl: return "~";
+ case OpIncrement: return "++";
+ case OpDecrement: return "--";
case OpBitAnd: return "&";
case OpBitOr: return "|";