girffi: Fix signedness of argument in internal helper function

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

Helps: #3155
This commit is contained in:
Philip Withnall 2024-01-05 13:08:24 +00:00
parent 513e178144
commit 5a56518852

View File

@ -171,11 +171,12 @@ gi_type_info_get_ffi_type (GITypeInfo *info)
*/
static ffi_type **
gi_callable_info_get_ffi_arg_types (GICallableInfo *callable_info,
int *n_args_p)
size_t *n_args_p)
{
ffi_type **arg_types;
gboolean is_method, throws;
gint n_args, n_invoke_args, i, offset;
size_t n_invoke_args;
guint n_args, i, offset;
g_return_val_if_fail (callable_info != NULL, NULL);
@ -321,7 +322,7 @@ gi_function_invoker_new_for_address (gpointer addr,
GError **error)
{
ffi_type **atypes;
gint n_args;
size_t n_args;
g_return_val_if_fail (info != NULL, FALSE);
g_return_val_if_fail (invoker != NULL, FALSE);
@ -379,7 +380,7 @@ gi_callable_info_create_closure (GICallableInfo *callable_info,
gpointer user_data)
{
gpointer exec_ptr;
int n_args;
size_t n_args;
ffi_type **atypes;
GIClosureWrapper *closure;
ffi_status status;