projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dd11dc
)
(_objc_thread_id): Correct return type from int to _objc_thread_id.
author
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 16 Apr 1996 20:31:17 +0000
(16:31 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Tue, 16 Apr 1996 20:31:17 +0000
(16:31 -0400)
From-SVN: r11821
gcc/objc/thr-decosf1.c
patch
|
blob
|
history
diff --git
a/gcc/objc/thr-decosf1.c
b/gcc/objc/thr-decosf1.c
index 00e183d86b544951d4ebff7fb569dbfc56eeab34..1f1d6f396b560b5602f3c29051c33057a043889b 100644
(file)
--- 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".
*/
-
in
t
+
_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. */
}
/********