summaryrefslogtreecommitdiff
path: root/lib/std/endian.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-08 00:56:48 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-08 00:56:48 -0700
commit5317028311f7eda55ab588bfca93f27bbb5cd839 (patch)
treef001d7d58f41f45a128f104904e728b377bb37ea /lib/std/endian.myr
parent021df0555170075f937fd3cb62a273eea29147d4 (diff)
downloadmc-5317028311f7eda55ab588bfca93f27bbb5cd839.tar.gz
Remap type params according to bound scope.
Getting closer to scoping type params properly. Still not fully there.
Diffstat (limited to 'lib/std/endian.myr')
-rw-r--r--lib/std/endian.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/endian.myr b/lib/std/endian.myr
index 8bac74f..a705d8c 100644
--- a/lib/std/endian.myr
+++ b/lib/std/endian.myr
@@ -1,6 +1,6 @@
pkg std =
- generic hosttonet : (v : @a -> @a)
- generic nettohost : (v : @a -> @a)
+ generic hosttonet : (v : @a::(integral,numeric) -> @a::(integral,numeric))
+ generic nettohost : (v : @a::(integral,numeric) -> @a::(integral,numeric))
;;
/* FIXME: we only support little endian platforms right now,