summaryrefslogtreecommitdiff
path: root/lib/crypto
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 /lib/crypto
parent3ac4d72f007d089e96b5f06068338cb48c5521df (diff)
downloadmc-abb53670c906a115ba5b0cbf97fb9e5d165e94d3.tar.gz
Fix build.
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/clear.myr10
1 files changed, 5 insertions, 5 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)
}