summaryrefslogtreecommitdiff
path: root/lib/std/syswrap-ss+freebsd.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-05-17 22:00:50 -0700
committerOri Bernstein <ori@eigenstate.org>2016-05-17 22:00:50 -0700
commit7aac15b2bfcc5eec279aa14f9f199685f9d7e0d9 (patch)
treec9434a55ea6850aee7103f608c6333cfe3148d60 /lib/std/syswrap-ss+freebsd.myr
parentc96238b89583ed91e92ad909c507797d00015e95 (diff)
downloadmc-7aac15b2bfcc5eec279aa14f9f199685f9d7e0d9.tar.gz
New syntax for casts.
Diffstat (limited to 'lib/std/syswrap-ss+freebsd.myr')
-rw-r--r--lib/std/syswrap-ss+freebsd.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/syswrap-ss+freebsd.myr b/lib/std/syswrap-ss+freebsd.myr
index 2476beb..15928f4 100644
--- a/lib/std/syswrap-ss+freebsd.myr
+++ b/lib/std/syswrap-ss+freebsd.myr
@@ -19,7 +19,7 @@ const nanosleep = {nsecs
ns = nsecs % 1_000_000_000
req = [.sec = s, .nsec = ns]
- -> sys.nanosleep(&req, &rem) castto(errno)
+ -> (sys.nanosleep(&req, &rem) : errno)
}
const exit = {status
@@ -29,9 +29,9 @@ const exit = {status
const bgetcwd = {buf
var res
- res = sys.__getcwd(buf) castto(errno)
+ res = (sys.__getcwd(buf) : errno)
if res == 0
- -> cstrlen(buf) castto(errno)
+ -> (cstrlen(buf) : errno)
elif res == Enomem
-> Erange
else