From 91b6542a25a754f985181921331bdcbb2699c03c Mon Sep 17 00:00:00 2001 From: Valley Bell Date: Wed, 20 Dec 2023 18:16:46 +0100 Subject: [PATCH] enforce pthread_t->int conversion in Thread_GetID --- utils/OSThread_POSIX.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/OSThread_POSIX.c b/utils/OSThread_POSIX.c index 0be322c9..e3cd1e2d 100644 --- a/utils/OSThread_POSIX.c +++ b/utils/OSThread_POSIX.c @@ -95,7 +95,7 @@ UINT64 OSThread_GetID(const OS_THREAD* thr) #elif defined (__HAIKU__) return get_pthread_thread_id (thr->id); #else - return thr->id; + return (UINT64)thr->id; #endif }