mapi: Prevent cast from pointer to integer of different size.

On Windows64.
This commit is contained in:
José Fonseca 2014-01-23 13:21:52 +00:00
parent 799f30f385
commit ab5dc45b2f
1 changed files with 1 additions and 1 deletions

View 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();
}