gthread-deprecated: Fix some -Wsign-conversion warnings

These weren’t bugs.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>

Helps: #3405
This commit is contained in:
Philip Withnall 2025-04-10 18:32:41 +01:00
parent 9aa4f9f9c3
commit 40dd9ea9e0
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -135,7 +135,7 @@ GThreadFunctions g_thread_functions_for_glib_use =
static guint64 static guint64
gettime (void) gettime (void)
{ {
return g_get_monotonic_time () * 1000; return (guint64) g_get_monotonic_time () * 1000;
} }
guint64 (*g_thread_gettime) (void) = gettime; guint64 (*g_thread_gettime) (void) = gettime;
@ -803,8 +803,8 @@ guint
g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex) g_static_rec_mutex_unlock_full (GStaticRecMutex *mutex)
{ {
GRecMutex *rm; GRecMutex *rm;
gint depth; guint depth;
gint i; guint i;
rm = g_static_rec_mutex_get_rec_mutex_impl (mutex); rm = g_static_rec_mutex_get_rec_mutex_impl (mutex);