lang: ast: misc formatting and reference fixes

This commit is contained in:
2024-12-06 21:33:53 +00:00
parent bd377b00f4
commit 67bfdef18a
4 changed files with 70 additions and 36 deletions

View File

@@ -7,8 +7,9 @@ static void to_string(struct ivy_ast_node *node, b_string *str)
{
struct ivy_ast_double_node *v = (struct ivy_ast_double_node *)node;
b_string_append_cstr(str, "%s (%.2lf)", ivy_ast_node_type_to_string(node->n_type),
v->n_value->t_double);
b_string_append_cstrf(
str, "%s (%.2lf)", ivy_ast_node_type_to_string(node->n_type),
v->n_value->t_double);
}
struct ast_node_type double_node_ops = {