Fix function call parameter printer to omit extraneous leading comma
The output of all test cases was verified to be the same using diff.
This commit is contained in:
@@ -326,7 +326,8 @@ ast_expression::print(void) const
|
||||
printf("( ");
|
||||
|
||||
foreach_list_const (n, &this->expressions) {
|
||||
printf(", ");
|
||||
if (n != this->expressions.get_head())
|
||||
printf(", ");
|
||||
|
||||
ast_node *ast = exec_node_data(ast_node, n, link);
|
||||
ast->print();
|
||||
|
||||
Reference in New Issue
Block a user