tlibthread: fix 64-bit bug in threadstart (Nathaniel Filardo) - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit df1ee4e1af9340a8207535c5009ec289bf1ecda1
 (DIR) parent e22c0f6f8528b28371d6ce052896027e55b6c64a
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Sun,  1 Jun 2008 08:41:51 -0400
       
       libthread: fix 64-bit bug in threadstart (Nathaniel Filardo)
       
       Diffstat:
         M src/libthread/thread.c              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/src/libthread/thread.c b/src/libthread/thread.c
       t@@ -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;