summaryrefslogtreecommitdiff
path: root/ptw32_threadStart.c
diff options
context:
space:
mode:
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 */