From 42ebe165489b5429d1e1dc9f850bbf7d37dd127f Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Wed, 12 Dec 2012 22:46:57 +0100 Subject: 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 --- qv4ir.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qv4ir.cpp') 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 "|"; -- cgit v1.2.3