| tlibthread: fix 64-bit bug in threadstart (Nathaniel Filardo) - plan9port - [fo… | |
| git clone git://src.adamsgaard.dk/plan9port | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit df1ee4e1af9340a8207535c5009ec289bf1ecda1 | |
| parent e22c0f6f8528b28371d6ce052896027e55b6c64a | |
| Author: Russ Cox <[email protected]> | |
| 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(-) | |
| --- | |
| 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 … | |
| z <<= 16; | |
| z |= y; | |
| t = (_Thread*)z; |