From 40dd9ea9e067ee2189eb25a05d5afec1f861b58f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 10 Apr 2025 18:32:41 +0100 Subject: [PATCH] gthread-deprecated: Fix some -Wsign-conversion warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These weren’t bugs. Signed-off-by: Philip Withnall Helps: #3405 --- glib/deprecated/gthread-deprecated.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/glib/deprecated/gthread-deprecated.c b/glib/deprecated/gthread-deprecated.c index 157a8074d..f5e2d011a 100644 --- a/glib/deprecated/gthread-deprecated.c +++ b/glib/deprecated/gthread-deprecated.c @@ -135,7 +135,7 @@ GThreadFunctions g_thread_functions_for_glib_use = static guint64 gettime (void) { - return g_get_monotonic_time () * 1000; + return (guint64) g_get_monotonic_time () * 1000; } guint64 (*g_thread_gettime) (void) = gettime; @@ -803,8 +803,8 @@ guint g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex) { GRecMutex *rm; - gint depth; - gint i; + guint depth; + guint i; rm = g_static_rec_mutex_get_rec_mutex_impl (mutex);