summaryrefslogtreecommitdiff
path: root/lib/std/syswrap+plan9.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-06 16:32:57 -0700
committerOri Bernstein <ori@eigenstate.org>2016-05-06 16:32:57 -0700
commit278b89b6962d2d81d280e4578a3481943a6ee79b (patch)
treece401e1d945e6932f250927b1ff75d61de569709 /lib/std/syswrap+plan9.myr
parentfe464d312c57a23d985542f317d322a0115dd8a0 (diff)
downloadmc-278b89b6962d2d81d280e4578a3481943a6ee79b.tar.gz
Update libthread on 9front.
Diffstat (limited to 'lib/std/syswrap+plan9.myr')
-rw-r--r--lib/std/syswrap+plan9.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index c1291f4..bc1fcb2 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -206,9 +206,10 @@ const execve = {cmd, args, env;
}
const nanosleep = {nsecs
- if sys.sleep(nsecs/1_000_000) < 0
+ if sys.sleep((nsecs/1_000_000) castto(uint32)) < 0
-> lasterr()
;;
+ -> 0
}
/* memory stuff */