[glib: 6/11] Fix signedness warning in gio/gdesktopappinfo.c:g_app_info_get_all()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 6/11] Fix signedness warning in gio/gdesktopappinfo.c:g_app_info_get_all()
- Date: Tue, 19 Jan 2021 10:24:23 +0000 (UTC)
commit ae1eebb2e9b75484c4130472538727381e050ea2
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 11:13:29 2020 +0100
Fix signedness warning in gio/gdesktopappinfo.c:g_app_info_get_all()
gio/gdesktopappinfo.c: In function ‘g_app_info_get_all’:
gio/gdesktopappinfo.c:4597:17: error: comparison of integer expressions of different signedness: ‘int’
and ‘guint’ {aka ‘unsigned int’}
4597 | for (i = 0; i < desktop_file_dirs->len; i++)
| ^
gio/gdesktopappinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 74fadaf97..d1b76a8a5 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -4620,7 +4620,7 @@ g_app_info_get_all (void)
GHashTable *apps;
GHashTableIter iter;
gpointer value;
- int i;
+ guint i;
GList *infos;
apps = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]