summaryrefslogtreecommitdiff
path: root/src/common/thread.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-20 16:21:36 +0100
committerHaru <haru@dotalux.com>2016-02-20 16:21:36 +0100
commit3eb7a270958f33590c9472fe5d25fcf49f82b324 (patch)
tree8b02dd83f919a85d61f448c736bb4a1befe48633 /src/common/thread.c
parent8aa074958fc2162553055c4083f7696dab12161f (diff)
downloadhercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.tar.gz
hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.tar.bz2
hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.tar.xz
hercules-3eb7a270958f33590c9472fe5d25fcf49f82b324.zip
Fixed compile warnings in clang
- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available - Disabled -Wcast-align for the time being Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common/thread.c')
-rw-r--r--src/common/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/thread.c b/src/common/thread.c
index 6012791e2..b724344e6 100644
--- a/src/common/thread.c
+++ b/src/common/thread.c
@@ -263,7 +263,7 @@ int rathread_get_tid(void) {
#ifdef WIN32
return (int)GetCurrentThreadId();
#else
- return (intptr_t)pthread_self();
+ return (int)pthread_self();
#endif
#endif