[glib: 1/7] Fix signedness warning in gobject/gtype.c:lookup_iface_entry_I()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/7] Fix signedness warning in gobject/gtype.c:lookup_iface_entry_I()
- Date: Tue, 24 Nov 2020 15:37:22 +0000 (UTC)
commit f6e234fdb6bc04f972c0573bd272f25b47833d26
Author: Emmanuel Fleury <emmanuel fleury gmail com>
Date: Mon Nov 16 16:07:36 2020 +0100
Fix signedness warning in gobject/gtype.c:lookup_iface_entry_I()
gobject/gtype.c: In function ‘lookup_iface_entry_I’:
gobject/gtype.c:599:17: error: comparison of integer expressions of different signedness: ‘int’ and ‘long
unsigned int’
599 | if (index < IFACE_ENTRIES_N_ENTRIES (entries))
| ^
gobject/gatomicarray.h:51:8: note: in definition of macro ‘G_ATOMIC_ARRAY_DO_TRANSACTION’
51 | {_C_;} \
| ^~~
gobject/gtype.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index 909faf138..150403719 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -575,7 +575,7 @@ lookup_iface_entry_I (IFaceEntries *entries,
guint8 *offsets;
guint offset_index;
IFaceEntry *check;
- int index;
+ gsize index;
IFaceEntry *entry;
if (entries == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]