Fix casting of the return value integer to a pointer in the thread lib

This fixes building of the thread lib on 64 bit unix.
This commit is contained in:
Martin Storsjö 2014-01-10 22:18:21 +02:00
parent f02d0aa667
commit d8d5dfe646

View File

@ -84,7 +84,7 @@ typedef pthread_mutex_t WELS_MUTEX;
typedef sem_t WELS_EVENT;
#define WELS_THREAD_ROUTINE_TYPE void *
#define WELS_THREAD_ROUTINE_RETURN(rc) return (void*)rc;
#define WELS_THREAD_ROUTINE_RETURN(rc) return (void*)(intptr_t)rc;
#endif//__GNUC__