charmxi SDAG: Balance parens in code generation
authorPhil Miller <mille121@illinois.edu>
Mon, 7 Mar 2011 00:36:38 +0000 (18:36 -0600)
committerPhil Miller <mille121@illinois.edu>
Mon, 7 Mar 2011 02:32:36 +0000 (20:32 -0600)
src/xlat-i/sdag/CSdagConstruct.C

index 13473d4cc7cd37d59f541634ae0353a9c5583a20..35f7124034c602b5c0a0294d499f2eb439f01211 100644 (file)
@@ -971,9 +971,11 @@ void SdagConstruct::generateWhen(XStr& op)
 #endif
   // actual code here 
   if(nextBeginOrEnd == 1)
-   op << "    " << next->label->charstar() << "(";
+   op << "    " << next->label->charstar();
   else 
-   op << "    " << next->label->charstar() << "_end(";
+    op << "    " << next->label->charstar() << "_end";
+
+  op << "(";
 
   generateCall(op, *stateVars);