summaryrefslogtreecommitdiffstats
path: root/client/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/thread.c')
-rw-r--r--client/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/thread.c b/client/thread.c
index bdd613a..cd507ea 100644
--- a/client/thread.c
+++ b/client/thread.c
@@ -15,7 +15,7 @@ thread_id()
{
short i;
- i = (pthread_self() & 0xff) | (getpid() << 8);
+ i = ((unsigned int)pthread_self() & 0xff) | (getpid() << 8);
return i;
}