diff options
author | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-16 16:07:36 +0100 |
---|---|---|
committer | Emmanuel Fleury <emmanuel.fleury@gmail.com> | 2020-11-22 17:10:53 +0100 |
commit | f6e234fdb6bc04f972c0573bd272f25b47833d26 (patch) | |
tree | 6743e732f7b379eec5dc649afbec5f4539b51210 | |
parent | fa8a39c6c65b808a0e65e43227618ad4dafb818b (diff) | |
download | glib-f6e234fdb6bc04f972c0573bd272f25b47833d26.tar.gz |
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_;} \
| ^~~
-rw-r--r-- | gobject/gtype.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |