shithub: openh264

Download patch

ref: d8d5dfe6463e234362bb957b8aa52682bff2f167
parent: f02d0aa6677216b78d3e1150d82e237b5608a0a1
author: Martin Storsjö <[email protected]>
date: Fri Jan 10 17:18:21 EST 2014

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.

--- 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__