diff options
author | John Wiegley <johnw@newartisans.com> | 2009-02-27 14:06:52 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-02-27 14:06:52 -0400 |
commit | 0efe0c63ce285cc562933180a4a2b4ecb5a308b7 (patch) | |
tree | 26b70d032af3a502a2b6d80142838d5a5da2390f /src | |
parent | f7f07310f4c6b717dcc276b4a14b3fbfbaebdf27 (diff) | |
download | ledger-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.cc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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)) { |