diff options
-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; |