summaryrefslogtreecommitdiff
path: root/lib/std/endian.myr
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-07-15 00:36:08 -0700
committerOri Bernstein <ori@eigenstate.org>2017-07-15 00:36:42 -0700
commit357f87c1117edfdf77411781ebfae221a406c454 (patch)
tree5e70ba66596b8ee13ceb46e2c9268fe12101f17a /lib/std/endian.myr
parent15b5fb5c0f9fee25b01a245229efcef21c103bdc (diff)
downloadmc-357f87c1117edfdf77411781ebfae221a406c454.tar.gz
Type binding refactoring now compiles.
Still a bit sloppy on a few things, needs some dedup work, but it's working.
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 a705d8c..874ab71 100644
--- a/lib/std/endian.myr
+++ b/lib/std/endian.myr
@@ -10,7 +10,7 @@ generic hosttonet = {v : @a::(integral,numeric)
var ret
ret = 0
- for i = 0; i < sizeof(@a); i++
+ for i = 0; i < sizeof(@a::(integral,numeric)); i++
ret <<= 8
ret |= v & 0xff
v >>= 8
@@ -23,7 +23,7 @@ generic nettohost = {v : @a::(integral,numeric)
var ret
ret = 0
- for i = 0; i < sizeof(@a); i++
+ for i = 0; i < sizeof(@a::(integral,numeric)); i++
ret <<= 8
ret |= v & 0xff
v >>= 8