summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mapi/u_thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/u_thread.h b/src/mapi/u_thread.h
index 75fbec61dac..ba5d98ea902 100644
--- a/src/mapi/u_thread.h
+++ b/src/mapi/u_thread.h
@@ -92,7 +92,7 @@ typedef mtx_t u_mutex;
static INLINE unsigned long
u_thread_self(void)
{
- return (unsigned long) thrd_current();
+ return (unsigned long) (uintptr_t) thrd_current();
}