From 14e5844f3d290feea9ab6fc58d8f0d2fe08c08ca Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 12 Dec 2023 17:42:32 +0000 Subject: [PATCH] giconstantinfo: Correctly represent a size as gsize Signed-off-by: Philip Withnall Helps: #3155 --- girepository/giconstantinfo.c | 4 ++-- girepository/giconstantinfo.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/girepository/giconstantinfo.c b/girepository/giconstantinfo.c index 69e103ba0..e08455809 100644 --- a/girepository/giconstantinfo.c +++ b/girepository/giconstantinfo.c @@ -108,9 +108,9 @@ gi_constant_info_free_value (GIConstantInfo *info, * The size of the constant value stored in @argument will be returned. * Free the value with gi_constant_info_free_value(). * - * Returns: size of the constant + * Returns: size of the constant, in bytes */ -gint +gsize gi_constant_info_get_value (GIConstantInfo *info, GIArgument *value) { diff --git a/girepository/giconstantinfo.h b/girepository/giconstantinfo.h index 56c2cc85d..4b4b882a2 100644 --- a/girepository/giconstantinfo.h +++ b/girepository/giconstantinfo.h @@ -50,6 +50,6 @@ void gi_constant_info_free_value (GIConstantInfo *info, GIArgument *value); GI_AVAILABLE_IN_ALL -gint gi_constant_info_get_value (GIConstantInfo *info, +gsize gi_constant_info_get_value (GIConstantInfo *info, GIArgument *value); G_END_DECLS