diff options
Diffstat (limited to 'src/libthread/test')
-rw-r--r-- | src/libthread/test/thello.c | 1 | ||||
-rw-r--r-- | src/libthread/test/tspawnloop.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libthread/test/thello.c b/src/libthread/test/thello.c index c5732165..c237b7cd 100644 --- a/src/libthread/test/thello.c +++ b/src/libthread/test/thello.c @@ -7,4 +7,3 @@ threadmain(int argc, char **argv) { print("hello, world\n"); } - diff --git a/src/libthread/test/tspawnloop.c b/src/libthread/test/tspawnloop.c index 05636dc9..204328b8 100644 --- a/src/libthread/test/tspawnloop.c +++ b/src/libthread/test/tspawnloop.c @@ -8,7 +8,7 @@ execproc(void *v) int i, fd[3]; char buf[100], *args[3]; - i = (int)v; + i = (int)(uintptr)v; sprint(buf, "%d", i); fd[0] = dup(0, -1); fd[1] = dup(1, -1); @@ -33,7 +33,7 @@ threadmain(int argc, char **argv) c = threadwaitchan(); for(i=0;; i++){ - proccreate(execproc, (void*)i, 16384); + proccreate(execproc, (void*)(uintptr)i, 16384); w = recvp(c); if(w == nil) sysfatal("exec/recvp failed: %r"); |