[glib: 4/11] Fix signedness warning in gio/gdesktopappinfo.c:g_desktop_app_info_get_implementations()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 4/11] Fix signedness warning in gio/gdesktopappinfo.c:g_desktop_app_info_get_implementations()
- Date: Tue, 19 Jan 2021 10:24:23 +0000 (UTC)
commit 6bce33300ac4ff337fcceae44a01996777e58cec
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 11:09:07 2020 +0100
Fix signedness warning in gio/gdesktopappinfo.c:g_desktop_app_info_get_implementations()
gio/gdesktopappinfo.c: In function ‘g_desktop_app_info_get_implementations’:
gio/gdesktopappinfo.c:4451:17: error: comparison of integer expressions of different signedness: ‘gint’
{aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
4451 | 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 3ee1adb93..3cc453ccd 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -4477,7 +4477,7 @@ g_desktop_app_info_get_implementations (const gchar *interface)
{
GList *result = NULL;
GList **ptr;
- gint i;
+ guint i;
desktop_file_dirs_lock ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]