From a39cf236972f9d65cff799089e41af69187317d8 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 6 Dec 2019 21:10:00 +0100 Subject: [PATCH] Remove a warning (WINDOWS) --- m-mutex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-mutex.h b/m-mutex.h index ad5ba800..f07c100e 100644 --- a/m-mutex.h +++ b/m-mutex.h @@ -193,7 +193,7 @@ static inline void m_cond_wait(m_cond_t c, m_mutex_t m) static inline void m_thread_create(m_thread_t t, void (*func)(void*), void *arg) { - *t = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) func, arg, 0, NULL); + *t = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) (uintptr_t) func, arg, 0, NULL); M_ASSERT_INIT (*t != NULL, "thread"); }