summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-23 20:23:31 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-23 20:23:31 -0700
commit0de076266f9f82aed32303650b469cf287cb98f2 (patch)
tree8d084d7be05a00c4e3c4f8fb64409aed3059b03d
parent492c991bcb22a37377505fc97f8e976ef17bb9c1 (diff)
downloadmc-0de076266f9f82aed32303650b469cf287cb98f2.tar.gz
Conform to new generic scoping on plan 9.
-rw-r--r--lib/std/syswrap+plan9.myr6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/syswrap+plan9.myr b/lib/std/syswrap+plan9.myr
index 17b1f39..6d572a9 100644
--- a/lib/std/syswrap+plan9.myr
+++ b/lib/std/syswrap+plan9.myr
@@ -270,19 +270,19 @@ generic check = {e : @a::(integral, numeric) -> result(@b, errno)
}
/* duplicated code to break dependency cycle */
-generic _getle16 = {buf
+generic _getle16 = {buf -> @a::(numeric,integral)
-> ((buf[0] : @a::(numeric,integral)) << 0) | \
((buf[1] : @a::(numeric,integral)) << 8)
}
-generic _getle32 = {buf
+generic _getle32 = {buf -> @a::(numeric,integral)
-> ((buf[0] : @a::(numeric,integral)) << 0) | \
((buf[1] : @a::(numeric,integral)) << 8) | \
((buf[2] : @a::(numeric,integral)) << 16) | \
((buf[3] : @a::(numeric,integral)) << 24)
}
-generic _getle64 = {buf
+generic _getle64 = {buf -> @a::(numeric,integral)
-> ((buf[0] : @a::(numeric,integral)) << 0) | \
((buf[1] : @a::(numeric,integral)) << 8) | \
((buf[2] : @a::(numeric,integral)) << 16) | \