Commit 8b7bf671 by Richard Kenner

(_objc_thread_id): Correct return type from int to _objc_thread_id.

From-SVN: r11821
parent 9dd11dcb
...@@ -164,12 +164,12 @@ objc_thread_exit(void) ...@@ -164,12 +164,12 @@ objc_thread_exit(void)
* Returns an integer value which uniquely describes a thread. Must not be * Returns an integer value which uniquely describes a thread. Must not be
* -1 which is reserved as a marker for "no thread". * -1 which is reserved as a marker for "no thread".
*/ */
int _objc_thread_t
objc_thread_id(void) objc_thread_id(void)
{ {
pthread_t self = pthread_self(); pthread_t self = pthread_self();
return *(int *)&self; /* Return thread handle. */ return (_objc_thread_t) self; /* Return thread handle. */
} }
/******** /********
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment