From a73cc6d5a205fa0b096f36eb461a929f87e2bf42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Tue, 16 Jan 2024 02:11:41 +0100 Subject: [PATCH] girepository: Use size_t to keep track of the number of interfaces --- girepository/girepository.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/girepository/girepository.c b/girepository/girepository.c index 24579df59..8d883644c 100644 --- a/girepository/girepository.c +++ b/girepository/girepository.c @@ -69,7 +69,7 @@ static GIRepository *default_repository = NULL; static GPtrArray *typelib_search_path = NULL; typedef struct { - unsigned int n_interfaces; + size_t n_interfaces; GIBaseInfo *interfaces[]; } GTypeInterfaceCache; @@ -78,7 +78,7 @@ gtype_interface_cache_free (gpointer data) { GTypeInterfaceCache *cache = data; - for (unsigned int i = 0; i < cache->n_interfaces; i++) + for (size_t i = 0; i < cache->n_interfaces; i++) gi_base_info_unref ((GIBaseInfo*) cache->interfaces[i]); g_free (cache); }