From 30c47b059cd851c73b270c226df4b2b66e2e23af Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 7 Nov 2024 13:42:45 +0000 Subject: [PATCH] glib-init: Fix type used for string length storage This fixes a `-Wshorten-64-to-32` warning. Signed-off-by: Philip Withnall Helps: #3527 --- glib/glib-init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/glib-init.c b/glib/glib-init.c index 3518b90aa..20eba4668 100644 --- a/glib/glib-init.c +++ b/glib/glib-init.c @@ -234,7 +234,7 @@ GLogLevelFlags g_log_always_fatal = G_LOG_FATAL_MASK; static gboolean debug_key_matches (const gchar *key, const gchar *token, - guint length) + size_t length) { /* may not call GLib functions: see note in g_parse_debug_string() */ for (; length; length--, key++, token++)