commit | df1ee4e1af9340a8207535c5009ec289bf1ecda1 | [log] [tgz] |
---|---|---|
author | Russ Cox <rsc@swtch.com> | Sun Jun 01 08:41:51 2008 -0400 |
committer | Russ Cox <rsc@swtch.com> | Sun Jun 01 08:41:51 2008 -0400 |
tree | 1cace0a429e848a0ae99700d24ff6b94d693273d | |
parent | e22c0f6f8528b28371d6ce052896027e55b6c64a [diff] |
libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)
diff --git a/src/libthread/thread.c b/src/libthread/thread.c index 9b47e76..4e3e473 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c
@@ -86,7 +86,7 @@ _Thread *t; ulong z; - z = x<<16; /* hide undefined 32-bit shift from 32-bit compilers */ + z = (ulong)x << 16; /* hide undefined 32-bit shift from 32-bit compilers */ z <<= 16; z |= y; t = (_Thread*)z;