[glib: 8/11] Fix signedness warning in gio/gdesktopappinfo.c:array_contains()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 8/11] Fix signedness warning in gio/gdesktopappinfo.c:array_contains()
- Date: Wed, 13 Jan 2021 11:50:55 +0000 (UTC)
commit ce2446ddfda0aeed6185a00115bef8787c193b10
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Tue Nov 17 10:57:21 2020 +0100
Fix signedness warning in gio/gdesktopappinfo.c:array_contains()
gio/gdesktopappinfo.c: In function ‘array_contains’:
gio/gdesktopappinfo.c:1193:17: error: comparison of integer expressions of different signedness: ‘gint’
{aka ‘int’} and ‘guint’ {aka ‘unsigned int’}
1193 | for (i = 0; i < array->len; i++)
| ^
gio/gdesktopappinfo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
index 62fdcf6f8..f660b4985 100644
--- a/gio/gdesktopappinfo.c
+++ b/gio/gdesktopappinfo.c
@@ -1221,7 +1221,7 @@ static gboolean
array_contains (GPtrArray *array,
const gchar *str)
{
- gint i;
+ guint i;
for (i = 0; i < array->len; i++)
if (g_str_equal (array->pdata[i], str))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]