mapi: Prevent cast from pointer to integer of different size.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Jan 2014 13:21:52 +0000 (13:21 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 23 Jan 2014 13:21:52 +0000 (13:21 +0000)
On Windows64.

src/mapi/u_thread.h

index 75fbec61dac44a4ebeedbf0a416215dab12274b8..ba5d98ea902bf0549b2bc04a1193c05c1d0462cf 100644 (file)
@@ -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();
 }