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_;}         \
      |        ^~~
This commit is contained in:
Emmanuel Fleury 2020-11-16 16:07:36 +01:00
parent fa8a39c6c6
commit f6e234fdb6

View File

@ -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)