Corrected output of O_CALL nodes

This commit is contained in:
John Wiegley 2009-02-27 14:06:52 -04:00
parent f7f07310f4
commit 0efe0c63ce

View file

@ -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)) {