libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)

This commit is contained in:
Russ Cox 2008-06-01 08:41:51 -04:00
parent e22c0f6f85
commit df1ee4e1af

View file

@ -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;