summaryrefslogtreecommitdiff
path: root/ptw32_throw.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_throw.c')
-rw-r--r--ptw32_throw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ptw32_throw.c b/ptw32_throw.c
index b276119..63f45f1 100644
--- a/ptw32_throw.c
+++ b/ptw32_throw.c
@@ -79,12 +79,12 @@ ptw32_throw (DWORD exception)
switch (exception)
{
case PTW32_EPS_CANCEL:
- exitCode = (unsigned) PTHREAD_CANCELED;
+ exitCode = (unsigned)(size_t) PTHREAD_CANCELED;
break;
case PTW32_EPS_EXIT:
if (NULL != sp)
{
- exitCode = (unsigned) sp->exitStatus;
+ exitCode = (unsigned)(size_t) sp->exitStatus;
}
break;
}