mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-27 18:10:03 +01:00
girepository: Fix int signedness in private GIBaseInfo APIs
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
This commit is contained in:
parent
f3a02314c9
commit
e4332bc78d
@ -51,15 +51,14 @@
|
||||
GIFunctionInfo *
|
||||
gi_base_info_find_method (GIBaseInfo *base,
|
||||
guint32 offset,
|
||||
gint n_methods,
|
||||
guint n_methods,
|
||||
const gchar *name)
|
||||
{
|
||||
/* FIXME hash */
|
||||
GIRealInfo *rinfo = (GIRealInfo*)base;
|
||||
Header *header = (Header *)rinfo->typelib->data;
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < n_methods; i++)
|
||||
for (guint i = 0; i < n_methods; i++)
|
||||
{
|
||||
FunctionBlob *fblob = (FunctionBlob *)&rinfo->typelib->data[offset];
|
||||
const gchar *fname = (const gchar *)&rinfo->typelib->data[fblob->name];
|
||||
|
@ -238,10 +238,10 @@ void gi_type_info_init (GIBaseInfo *info,
|
||||
|
||||
GIFunctionInfo * gi_base_info_find_method (GIBaseInfo *base,
|
||||
guint32 offset,
|
||||
gint n_methods,
|
||||
guint n_methods,
|
||||
const gchar *name);
|
||||
|
||||
GIVFuncInfo * gi_base_info_find_vfunc (GIRealInfo *rinfo,
|
||||
guint32 offset,
|
||||
gint n_vfuncs,
|
||||
guint n_vfuncs,
|
||||
const gchar *name);
|
||||
|
@ -48,14 +48,13 @@
|
||||
GIVFuncInfo *
|
||||
gi_base_info_find_vfunc (GIRealInfo *rinfo,
|
||||
guint32 offset,
|
||||
gint n_vfuncs,
|
||||
guint n_vfuncs,
|
||||
const gchar *name)
|
||||
{
|
||||
/* FIXME hash */
|
||||
Header *header = (Header *)rinfo->typelib->data;
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < n_vfuncs; i++)
|
||||
for (guint i = 0; i < n_vfuncs; i++)
|
||||
{
|
||||
VFuncBlob *fblob = (VFuncBlob *)&rinfo->typelib->data[offset];
|
||||
const gchar *fname = (const gchar *)&rinfo->typelib->data[fblob->name];
|
||||
|
Loading…
x
Reference in New Issue
Block a user