shithub: openh264

Download patch

ref: 301b06ad363e964daccaeb823e88de528a55c6a6
parent: ea418846f1c2e5732e19af711bb6099971e38389
parent: d8d5dfe6463e234362bb957b8aa52682bff2f167
author: Ethan Hugg <[email protected]>
date: Mon Jan 13 04:05:01 EST 2014

Merge pull request #135 from mstorsjo/pointer-cast

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

--- a/codec/WelsThreadLib/api/WelsThreadLib.h
+++ b/codec/WelsThreadLib/api/WelsThreadLib.h
@@ -84,7 +84,7 @@
 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__