aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-04-16 16:31:17 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-04-16 16:31:17 -0400
commit8b7bf67189a6cba6c3e726eb5d81e0d24c8a4ef5 (patch)
treeb83dc8669007e87437263f47a5ce1d00bee57d7b
parent9dd11dcb09121142942a663d687ad46dfd85d54c (diff)
downloadgcc-8b7bf67189a6cba6c3e726eb5d81e0d24c8a4ef5.zip
gcc-8b7bf67189a6cba6c3e726eb5d81e0d24c8a4ef5.tar.gz
gcc-8b7bf67189a6cba6c3e726eb5d81e0d24c8a4ef5.tar.bz2
(_objc_thread_id): Correct return type from int to _objc_thread_id.
From-SVN: r11821
-rw-r--r--gcc/objc/thr-decosf1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/objc/thr-decosf1.c b/gcc/objc/thr-decosf1.c
index 00e183d8..1f1d6f3 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. */
}
/********