diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-06 18:12:15 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-01 14:34:57 -0800 |
commit | 84f5fee3c769fc907c561110f4828416f921e81a (patch) | |
tree | 2da192cf588e5c7f93535b7d66e606e83df04a38 /pr.c | |
parent | 40bcc8c3303a858c786f1d6d04ae5bbdec6b04ff (diff) |
Handle some implicit conversion warnings from clang
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'pr.c')
-rw-r--r-- | pr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -132,7 +132,7 @@ pr(struct inclist *ip, const char *file, const char *base) ip->i_flags |= NOTIFIED; lastfile = NULL; printf("\n# %s includes:", ip->i_file); - for (int i = 0; i < ip->i_listlen; i++) + for (unsigned int i = 0; i < ip->i_listlen; i++) printf("\n#\t%s", ip->i_list[i]->i_incstring); } @@ -144,6 +144,6 @@ recursive_pr_include(struct inclist *head, const char *file, const char *base) head->i_flags |= MARKED; if (head->i_file != file) pr(head, file, base); - for (int i = 0; i < head->i_listlen; i++) + for (unsigned int i = 0; i < head->i_listlen; i++) recursive_pr_include(head->i_list[i], file, base); } |