summaryrefslogtreecommitdiff
path: root/lib/std/dir+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/dir+freebsd.myr
parentc96238b89583ed91e92ad909c507797d00015e95 (diff)
downloadmc-7aac15b2bfcc5eec279aa14f9f199685f9d7e0d9.tar.gz
New syntax for casts.
Diffstat (limited to 'lib/std/dir+freebsd.myr')
-rw-r--r--lib/std/dir+freebsd.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/dir+freebsd.myr b/lib/std/dir+freebsd.myr
index fdfcb3b..1177f2b 100644
--- a/lib/std/dir+freebsd.myr
+++ b/lib/std/dir+freebsd.myr
@@ -48,8 +48,8 @@ const dirread = {d
d.off = 0
;;
- dent = &d.buf[d.off] castto(sys.dirent#)
- d.off += dent.reclen castto(int64)
+ dent = (&d.buf[d.off] : sys.dirent#)
+ d.off += (dent.reclen : int64)
-> `Some sldup(dent.name[:dent.namelen])
}