diff options
author | Russ Cox <rsc@swtch.com> | 2008-06-01 08:41:51 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-06-01 08:41:51 -0400 |
commit | df1ee4e1af9340a8207535c5009ec289bf1ecda1 (patch) | |
tree | 1cace0a429e848a0ae99700d24ff6b94d693273d | |
parent | e22c0f6f8528b28371d6ce052896027e55b6c64a (diff) | |
download | plan9port-df1ee4e1af9340a8207535c5009ec289bf1ecda1.tar.gz plan9port-df1ee4e1af9340a8207535c5009ec289bf1ecda1.tar.bz2 plan9port-df1ee4e1af9340a8207535c5009ec289bf1ecda1.zip |
libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)
-rw-r--r-- | src/libthread/thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libthread/thread.c b/src/libthread/thread.c index 9b47e769..4e3e473c 100644 --- a/src/libthread/thread.c +++ b/src/libthread/thread.c @@ -86,7 +86,7 @@ threadstart(uint y, uint x) _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; |