From ab5dc45b2fb7447dcb4f48b3f83f75e271eca9b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Thu, 23 Jan 2014 13:21:52 +0000 Subject: [PATCH] mapi: Prevent cast from pointer to integer of different size. On Windows64. --- src/mapi/u_thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.30.2