src/Expression.cc

changeset 96
3384d7aa036a
parent 95
4db95b92c29a
child 100
e0392814ee31
--- a/src/Expression.cc	Tue Feb 04 13:38:22 2014 +0200
+++ b/src/Expression.cc	Tue Feb 04 14:21:06 2014 +0200
@@ -403,6 +403,7 @@
 											   const List<ExpressionValue*>& values)
 {
 	const OperatorInfo* info = &gOperators[op->GetID()];
+	Print ("Process operator %1\n", info - gOperators);
 	bool isconstexpr = true;
 
 	for (ExpressionValue* val : values)
@@ -449,6 +450,11 @@
 			buf->AdjustMark (mark1); // move mark1 at the end of the true case
 			buf->MergeAndDestroy (b2); // perform third operand (false case)
 			buf->AdjustMark (mark2); // move the ending mark2 here
+
+			Print ("Mark positions: %1 %2\n", mark1->pos, mark2->pos);
+
+			for (int i = 0; i < 3; ++i)
+				values[i]->SetBuffer (null);
 		}
 		else
 		{

mercurial