Skip to content

Commit

Permalink
libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsc committed Jun 1, 2008
1 parent e22c0f6 commit df1ee4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libthread/thread.c
Expand Up @@ -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;
Expand Down

0 comments on commit df1ee4e

Please sign in to comment.