Merge pull request #135 from mstorsjo/pointer-cast

Fix casting of the return value integer to a pointer in the thread lib
This commit is contained in:
Ethan Hugg 2014-01-13 09:05:01 -08:00
commit 301b06ad36

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__