Module: Mesa
Branch: master
Commit: ab5dc45b2fb7447dcb4f48b3f83f75e271eca9b6
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ab5dc45b2fb7447dcb4f48b3f83f75e271eca9b6

Author: José Fonseca <[email protected]>
Date:   Thu Jan 23 13:21:52 2014 +0000

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 75fbec6..ba5d98e 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();
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to