From 5fe3231c9e64525377a1c7260da502d96a441307 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Thu, 5 Dec 2024 22:00:23 +0000 Subject: [PATCH] lang: ast: fix match node type specifying wrong node size --- lang/ast/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/ast/match.c b/lang/ast/match.c index dfd6aad..e32e2d8 100644 --- a/lang/ast/match.c +++ b/lang/ast/match.c @@ -233,7 +233,7 @@ struct ast_node_type match_node_ops = { .n_add_child = add_child, .n_collect_children = match_collect_children, .n_state_size = sizeof(struct match_parser_state), - .n_node_size = sizeof(struct ivy_ast_cond_group_node), + .n_node_size = sizeof(struct ivy_ast_match_node), .n_keyword_parsers = { KW_PARSER(MATCH, parse_match), KW_PARSER(IN, parse_in),