From cbf43783043acd39ede85a4e82566b914078b4cb Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 20 Apr 2006 20:35:35 +0000 Subject: 64-bit fixes from plan 9 --- src/cmd/samterm/plan9.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/samterm/plan9.c') diff --git a/src/cmd/samterm/plan9.c b/src/cmd/samterm/plan9.c index 2aca0842..469d566e 100644 --- a/src/cmd/samterm/plan9.c +++ b/src/cmd/samterm/plan9.c @@ -121,7 +121,7 @@ extproc(void *argv) arg = argv; c = arg[0]; - fd = (int)arg[1]; + fd = (int)(uintptr)arg[1]; i = 0; for(;;){ @@ -190,7 +190,7 @@ extstart(void) plumbc = chancreate(sizeof(int), 0); chansetname(plumbc, "plumbc"); arg[0] = plumbc; - arg[1] = (void*)fd; + arg[1] = (void*)(uintptr)fd; proccreate(extproc, arg, STACK); atexit(removeextern); } -- cgit v1.2.3