From 3b266c51617df955b8cb2518db2bfce96bf3adbb Mon Sep 17 00:00:00 2001 From: Sven Verdoolaege Date: Mon, 1 Feb 2016 16:18:16 +0100 Subject: [PATCH] pet.cc: is_implicit: avoid different signs comparison warning Signed-off-by: Sven Verdoolaege --- pet.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pet.cc b/pet.cc index d497942..e68c347 100644 --- a/pet.cc +++ b/pet.cc @@ -720,12 +720,12 @@ static const char *pencil_implicit_functions[] = { static bool is_implicit(const IdentifierInfo *ident, int pencil) { const char *name = ident->getNameStart(); - for (int i = 0; i < ARRAY_SIZE(implicit_functions); ++i) + for (size_t i = 0; i < ARRAY_SIZE(implicit_functions); ++i) if (!strcmp(name, implicit_functions[i])) return true; if (!pencil) return false; - for (int i = 0; i < ARRAY_SIZE(pencil_implicit_functions); ++i) + for (size_t i = 0; i < ARRAY_SIZE(pencil_implicit_functions); ++i) if (!strcmp(name, pencil_implicit_functions[i])) return true; return false; -- 2.11.4.GIT