From e9655c597a1e809c3bfc6d90d3d516eba39e9faa Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 25 Apr 2024 00:54:52 +0100 Subject: [PATCH] gobject: Fix various implicit conversions from size_t to smaller types Basically various trivial instances of the following MSVC compiler warning: ``` ../gio/gio-tool-set.c(50): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data ``` Signed-off-by: Philip Withnall --- gobject/gobject-query.c | 2 +- gobject/gtype.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gobject/gobject-query.c b/gobject/gobject-query.c index 76670320f..1cdff2ac6 100644 --- a/gobject/gobject-query.c +++ b/gobject/gobject-query.c @@ -47,7 +47,7 @@ show_nodes (GType type, const gchar *indent) { GType *children; - guint i; + size_t i; if (!type) return; diff --git a/gobject/gtype.c b/gobject/gtype.c index 8222fc493..b8e724092 100644 --- a/gobject/gtype.c +++ b/gobject/gtype.c @@ -1073,7 +1073,7 @@ type_data_make_W (TypeNode *node, { TypeData *data; GTypeValueTable *vtable = NULL; - guint vtable_size = 0; + size_t vtable_size = 0; g_assert (node->data == NULL && info != NULL);