summaryrefslogtreecommitdiff
path: root/ptw32_threadStart.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-03-03 23:37:20 +0000
committerrpj <rpj>2011-03-03 23:37:20 +0000
commite470da85f7b9426eea03d66086c2822bf29e9b05 (patch)
treeb3747768258dc62752612327904be1f1067d5c7f /ptw32_threadStart.c
parent1170175259781ece4a8d99d517230f4b9ecb7b50 (diff)
Some cleanups, mostly x86_64 compat plus interlocked macros
Diffstat (limited to 'ptw32_threadStart.c')
-rw-r--r--ptw32_threadStart.c4
1 files changed, 2 insertions, 2 deletions
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 */