From deaaa5fc851e93f808b21482fb38570a6a4eee7c Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sun, 8 Dec 2019 19:29:17 -0500 Subject: checking for duplicate args --- identifiers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'identifiers.c') diff --git a/identifiers.c b/identifiers.c index b407e39..f1bd380 100644 --- a/identifiers.c +++ b/identifiers.c @@ -33,7 +33,7 @@ static Identifier ident_new(Identifiers *ids, Identifier parent, unsigned char i memset(tree, 0, sizeof *tree); /* use zero value of IdentTree */ #ifdef NONZERO_NULL_PTRS tree->parent = NULL; - for (size_t i = 0; i < TREE_NCHILDREN; i++) + for (size_t i = 0; i < TREE_NCHILDREN; ++i) tree->children[i] = NULL; tree->decls = NULL; #endif @@ -170,7 +170,7 @@ static IdentDecl *ident_decl(Identifier i) { static void ident_tree_free(IdentTree *id) { if (!id) return; arr_clear(&id->decls); - for (int i = 0; i < TREE_NCHILDREN; i++) + for (int i = 0; i < TREE_NCHILDREN; ++i) ident_tree_free(id->children[i]); } -- cgit v1.2.3