aboutsummaryrefslogtreecommitdiff
path: root/src/ast_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_dump.c')
-rw-r--r--src/ast_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast_dump.c b/src/ast_dump.c
index 0224c09..0b3c2e2 100644
--- a/src/ast_dump.c
+++ b/src/ast_dump.c
@@ -54,10 +54,10 @@ void ast_dump(ast_node_t *node, int depth) {
fprintf(stderr, "{\n");
- for (int i = 0; i < node->children.len; i++)
+ for (size_t i = 0; i < node->children.len; i++)
ast_dump(node->children._data[i], depth + 1);
- for (size_t i = 0; i < depth; i++)
+ for (int i = 0; i < depth; i++)
fprintf(stderr, " ");
fprintf(stderr, "}\n");