summaryrefslogtreecommitdiff
path: root/threading_pthread.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2009-08-31 08:43:08 +0200
committerGravatar waker <wakeroid@gmail.com>2009-08-31 08:43:08 +0200
commitc3a2c81accae4d01a466a05e584ce5c35fcf69e6 (patch)
treebbeb8bd4c7181e16352db96b7e9b48feff667b04 /threading_pthread.c
parent00f8f988f064e5146610bb7e15e89bc84041aad1 (diff)
fixed segfault on 64 bit platforms
Diffstat (limited to 'threading_pthread.c')
-rw-r--r--threading_pthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/threading_pthread.c b/threading_pthread.c
index 0934ab4a..942ddbfe 100644
--- a/threading_pthread.c
+++ b/threading_pthread.c
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include "threading.h"
-int
+intptr_t
thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx) {
pthread_t tid;
pthread_attr_t attr;
@@ -44,7 +44,7 @@ thread_start (void (*fn)(uintptr_t ctx), uintptr_t ctx) {
}
int
-thread_join (int tid) {
+thread_join (intptr_t tid) {
void *retval;
int s = pthread_join ((pthread_t)tid, &retval);
if (s) {