From c3a2c81accae4d01a466a05e584ce5c35fcf69e6 Mon Sep 17 00:00:00 2001 From: waker Date: Mon, 31 Aug 2009 08:43:08 +0200 Subject: fixed segfault on 64 bit platforms --- threading_pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'threading_pthread.c') 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 #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) { -- cgit v1.2.3