givfuncinfo: Fix int signedness in APIs

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3155
This commit is contained in:
Philip Withnall 2023-12-12 18:44:37 +00:00
parent 83c41fe09e
commit 9b47344f3c
2 changed files with 6 additions and 6 deletions

View File

@ -120,7 +120,7 @@ gi_vfunc_info_get_flags (GIVFuncInfo *info)
* Returns: the struct offset or `0xFFFF` if its unknown
* Since: 2.80
*/
gint
guint
gi_vfunc_info_get_offset (GIVFuncInfo *info)
{
GIRealInfo *rinfo = (GIRealInfo *)info;
@ -336,9 +336,9 @@ gboolean
gi_vfunc_info_invoke (GIVFuncInfo *info,
GType implementor,
const GIArgument *in_args,
int n_in_args,
gsize n_in_args,
const GIArgument *out_args,
int n_out_args,
gsize n_out_args,
GIArgument *return_value,
GError **error)
{

View File

@ -47,7 +47,7 @@ GI_AVAILABLE_IN_ALL
GIVFuncInfoFlags gi_vfunc_info_get_flags (GIVFuncInfo *info);
GI_AVAILABLE_IN_ALL
gint gi_vfunc_info_get_offset (GIVFuncInfo *info);
guint gi_vfunc_info_get_offset (GIVFuncInfo *info);
GI_AVAILABLE_IN_ALL
GISignalInfo * gi_vfunc_info_get_signal (GIVFuncInfo *info);
@ -64,9 +64,9 @@ GI_AVAILABLE_IN_ALL
gboolean gi_vfunc_info_invoke (GIVFuncInfo *info,
GType implementor,
const GIArgument *in_args,
int n_in_args,
gsize n_in_args,
const GIArgument *out_args,
int n_out_args,
gsize n_out_args,
GIArgument *return_value,
GError **error);