From e470da85f7b9426eea03d66086c2822bf29e9b05 Mon Sep 17 00:00:00 2001 From: rpj Date: Thu, 3 Mar 2011 23:37:20 +0000 Subject: Some cleanups, mostly x86_64 compat plus interlocked macros --- ptw32_threadStart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ptw32_threadStart.c') diff --git a/ptw32_threadStart.c b/ptw32_threadStart.c index 5c0fe0e..8121d5a 100644 --- a/ptw32_threadStart.c +++ b/ptw32_threadStart.c @@ -344,7 +344,7 @@ ptw32_threadStart (void *vthreadParms) #endif #if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__) - _endthreadex ((unsigned) status); + _endthreadex ((unsigned)(size_t) status); #else _endthread (); #endif @@ -354,7 +354,7 @@ ptw32_threadStart (void *vthreadParms) */ #if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__) - return (unsigned) status; + return (unsigned)(size_t) status; #endif } /* ptw32_threadStart */ -- cgit v1.2.3