summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2018-02-26 13:37:30 -0800
committerOri Bernstein <ori@markovcorp.com>2018-02-26 13:37:30 -0800
commitabb53670c906a115ba5b0cbf97fb9e5d165e94d3 (patch)
tree0c91e17ce44803aada41ecb89297daa5dd8c7132
parent3ac4d72f007d089e96b5f06068338cb48c5521df (diff)
downloadmc-abb53670c906a115ba5b0cbf97fb9e5d165e94d3.tar.gz
Fix build.
-rw-r--r--lib/crypto/clear.myr10
-rw-r--r--lib/std/memops.myr6
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/crypto/clear.myr b/lib/crypto/clear.myr
index 1b68cd7..5345f2b 100644
--- a/lib/crypto/clear.myr
+++ b/lib/crypto/clear.myr
@@ -9,11 +9,11 @@ pkg crypto =
;;
generic clear = {p : @a#
- std.memfill(p, 0, sizeof(@a))
+ std.memfill((p : byte#), 0, sizeof(@a))
}
-generic slclear = {p : @a[:]
- std.memfill(sl, 0, sizeof(@a)*sl.len)
+generic slclear = {sl : @a[:]
+ std.memfill((sl : byte#), 0, sizeof(@a)*sl.len)
}
generic free = {p : @a#
@@ -22,6 +22,6 @@ generic free = {p : @a#
}
generic slfree = {sl : @a[:]
- slclear(p)
- std.slfree(p)
+ slclear(sl)
+ std.slfree(sl)
}
diff --git a/lib/std/memops.myr b/lib/std/memops.myr
index 7eb7e8f..e442ba9 100644
--- a/lib/std/memops.myr
+++ b/lib/std/memops.myr
@@ -1,8 +1,8 @@
use "types"
pkg std =
- pkglocal extern const memblit : (dst : byte#, src : byte#, len : std.size -> void)
- pkglocal extern const memfill : (dst : byte#, val : byte, len : std.size -> void)
- pkglocal extern const memeq : (a : byte#, b : byte#, len : std.size -> bool)
+ extern const memblit : (dst : byte#, src : byte#, len : std.size -> void)
+ extern const memfill : (dst : byte#, val : byte, len : std.size -> void)
+ extern const memeq : (a : byte#, b : byte#, len : std.size -> bool)
;;