summaryrefslogtreecommitdiff
path: root/Python/thread_pth.h
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-04-13 18:06:42 -0400
committerBenjamin Peterson <benjamin@python.org>2012-04-13 18:06:42 -0400
commitc2c9c905706160bf34aea12f2348210aac3e0da2 (patch)
tree9f7cc31fdab50fc9e80c1c9fd379e0b12414242a /Python/thread_pth.h
parente307451be16e5bf59b38ec5aea76f68c0831fb65 (diff)
parent77795fd1f148a037c9ab583968d85bfc009bc15c (diff)
downloadcpython-c2c9c905706160bf34aea12f2348210aac3e0da2.tar.gz
merge 3.2
Diffstat (limited to 'Python/thread_pth.h')
-rw-r--r--Python/thread_pth.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/thread_pth.h b/Python/thread_pth.h
index 82a00e72ba..5704266a03 100644
--- a/Python/thread_pth.h
+++ b/Python/thread_pth.h
@@ -69,9 +69,8 @@ long PyThread_get_thread_ident(void)
volatile pth_t threadid;
if (!initialized)
PyThread_init_thread();
- /* Jump through some hoops for Alpha OSF/1 */
threadid = pth_self();
- return (long) *(long *) &threadid;
+ return (long) threadid;
}
void PyThread_exit_thread(void)