mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-02 13:53:06 +02:00
girffi: Fix signedness of argument in internal helper function
Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3155
This commit is contained in:
parent
513e178144
commit
5a56518852
@ -171,11 +171,12 @@ gi_type_info_get_ffi_type (GITypeInfo *info)
|
|||||||
*/
|
*/
|
||||||
static ffi_type **
|
static ffi_type **
|
||||||
gi_callable_info_get_ffi_arg_types (GICallableInfo *callable_info,
|
gi_callable_info_get_ffi_arg_types (GICallableInfo *callable_info,
|
||||||
int *n_args_p)
|
size_t *n_args_p)
|
||||||
{
|
{
|
||||||
ffi_type **arg_types;
|
ffi_type **arg_types;
|
||||||
gboolean is_method, throws;
|
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);
|
g_return_val_if_fail (callable_info != NULL, NULL);
|
||||||
|
|
||||||
@ -321,7 +322,7 @@ gi_function_invoker_new_for_address (gpointer addr,
|
|||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
ffi_type **atypes;
|
ffi_type **atypes;
|
||||||
gint n_args;
|
size_t n_args;
|
||||||
|
|
||||||
g_return_val_if_fail (info != NULL, FALSE);
|
g_return_val_if_fail (info != NULL, FALSE);
|
||||||
g_return_val_if_fail (invoker != 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 user_data)
|
||||||
{
|
{
|
||||||
gpointer exec_ptr;
|
gpointer exec_ptr;
|
||||||
int n_args;
|
size_t n_args;
|
||||||
ffi_type **atypes;
|
ffi_type **atypes;
|
||||||
GIClosureWrapper *closure;
|
GIClosureWrapper *closure;
|
||||||
ffi_status status;
|
ffi_status status;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user