From 8b7bf67189a6cba6c3e726eb5d81e0d24c8a4ef5 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 16 Apr 1996 16:31:17 -0400 Subject: [PATCH] (_objc_thread_id): Correct return type from int to _objc_thread_id. From-SVN: r11821 --- gcc/objc/thr-decosf1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/objc/thr-decosf1.c b/gcc/objc/thr-decosf1.c index 00e183d86b5..1f1d6f396b5 100644 --- a/gcc/objc/thr-decosf1.c +++ b/gcc/objc/thr-decosf1.c @@ -164,12 +164,12 @@ objc_thread_exit(void) * Returns an integer value which uniquely describes a thread. Must not be * -1 which is reserved as a marker for "no thread". */ -int +_objc_thread_t objc_thread_id(void) { pthread_t self = pthread_self(); - return *(int *)&self; /* Return thread handle. */ + return (_objc_thread_t) self; /* Return thread handle. */ } /******** -- 2.30.2