libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)
This commit is contained in:
parent
e22c0f6f85
commit
df1ee4e1af
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue