mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
girepository: Use expected signed types for iterating
We are using various indexes types, but not always using the correct sign or size, so let's adapt this to ensure we're consistent with the values we're comparing with.
This commit is contained in:
@@ -48,13 +48,13 @@
|
||||
GIVFuncInfo *
|
||||
gi_base_info_find_vfunc (GIRealInfo *rinfo,
|
||||
uint32_t offset,
|
||||
unsigned n_vfuncs,
|
||||
uint16_t n_vfuncs,
|
||||
const char *name)
|
||||
{
|
||||
/* FIXME hash */
|
||||
Header *header = (Header *)rinfo->typelib->data;
|
||||
|
||||
for (unsigned i = 0; i < n_vfuncs; i++)
|
||||
for (uint16_t i = 0; i < n_vfuncs; i++)
|
||||
{
|
||||
VFuncBlob *fblob = (VFuncBlob *)&rinfo->typelib->data[offset];
|
||||
const char *fname = (const char *)&rinfo->typelib->data[fblob->name];
|
||||
|
Reference in New Issue
Block a user