From: José Fonseca Date: Thu, 23 Jan 2014 13:21:52 +0000 (+0000) Subject: mapi: Prevent cast from pointer to integer of different size. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab5dc45b2fb7447dcb4f48b3f83f75e271eca9b6;p=mesa.git mapi: Prevent cast from pointer to integer of different size. On Windows64. --- 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(); }