summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-27 14:06:52 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-27 14:06:52 -0400
commit0efe0c63ce285cc562933180a4a2b4ecb5a308b7 (patch)
tree26b70d032af3a502a2b6d80142838d5a5da2390f /src
parentf7f07310f4c6b717dcc276b4a14b3fbfbaebdf27 (diff)
downloadledger-0efe0c63ce285cc562933180a4a2b4ecb5a308b7.tar.gz
ledger-0efe0c63ce285cc562933180a4a2b4ecb5a308b7.tar.bz2
ledger-0efe0c63ce285cc562933180a4a2b4ecb5a308b7.zip
Corrected output of O_CALL nodes
Diffstat (limited to 'src')
-rw-r--r--src/op.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/op.cc b/src/op.cc
index a8994309..9b50c9f7 100644
--- a/src/op.cc
+++ b/src/op.cc
@@ -473,9 +473,11 @@ bool expr_t::op_t::print(std::ostream& out, const context_t& context) const
out << "(";
if (left() && left()->print(out, context))
found = true;
- out << ", ";
- if (has_right() && right()->print(out, context))
- found = true;
+ for (ptr_op_t next = right(); next; next = next->right()) {
+ out << ", ";
+ if (next->print(out, context))
+ found = true;
+ }
out << ")";
}
else if (left() && left()->print(out, context)) {