diff options
author | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-17 11:07:46 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2021-01-19 10:03:12 +0000 |
commit | 554b1ff0e2098ed1d646c79c9994639fa9b8ce9c (patch) | |
tree | 80d15bb1b0087303998e334986540999a10870a0 /gio/gdesktopappinfo.c | |
parent | daa0e0b76b9b50005fc5fda628bee1cc98a3d1c5 (diff) | |
download | glib-554b1ff0e2098ed1d646c79c9994639fa9b8ce9c.tar.gz |
Fix several signedness warnings in gio/gdesktopappinfo.c:g_app_info_get_default_for_type()
gio/gdesktopappinfo.c: In function ‘g_app_info_get_default_for_type’:
gio/gdesktopappinfo.c:4357:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
4357 | for (j = 0; j < desktop_file_dirs->len; j++)
| ^
gio/gdesktopappinfo.c:4361:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
4361 | for (j = 0; j < desktop_file_dirs->len; j++)
| ^
gio/gdesktopappinfo.c:4365:21: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
4365 | for (j = 0; j < results->len; j++)
| ^
gio/gdesktopappinfo.c:4369:25: error: comparison of integer expressions of different signedness: ‘gint’ {aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
4369 | for (k = 0; k < desktop_file_dirs->len; k++)
| ^
Diffstat (limited to 'gio/gdesktopappinfo.c')
-rw-r--r-- | gio/gdesktopappinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c index ae19e6d74..3ee1adb93 100644 --- a/gio/gdesktopappinfo.c +++ b/gio/gdesktopappinfo.c @@ -4372,7 +4372,7 @@ g_app_info_get_default_for_type (const char *content_type, GPtrArray *results; GAppInfo *info; gchar **types; - gint i, j, k; + guint i, j, k; g_return_val_if_fail (content_type != NULL, NULL); |