hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 75f5e023944b0a68186d2235670a534a5532259e
parent 5dc63aecaaff2767ccf1270c952aac5c5a8407be
Author: Armin Preiml <apreiml@strohwolke.at>
Date:   Tue, 18 Jan 2022 10:49:34 +0100

crypto::argon2: fix memory allocation in tests

Signed-off-by: Armin Preiml <apreiml@strohwolke.at>

Diffstat:
Mcrypto/argon2/+test.ha | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/crypto/argon2/+test.ha b/crypto/argon2/+test.ha @@ -36,7 +36,7 @@ use bytes; let data: [12]u8 = [4...]; let result: [32]u8 = [0...]; - let mem: *[32 * BLOCKSIZE]u64 = alloc([0...]); + let mem: []u64 = alloc([0...], 32z * BLOCKSIZE); defer free(mem); let expected: [_]u8 = [ @@ -69,7 +69,7 @@ use bytes; let data: [12]u8 = [4...]; let result: [32]u8 = [0...]; - let mem: *[32 * BLOCKSIZE]u64 = alloc([0...]); + let mem: []u64 = alloc([0...], 32z * BLOCKSIZE); defer free(mem); let expected: [_]u8 = [ @@ -101,7 +101,7 @@ use bytes; let data: [12]u8 = [4...]; let result: [32]u8 = [0...]; - let mem: *[32 * BLOCKSIZE]u64 = alloc([0...]); + let mem: []u64 = alloc([0...], 32z * BLOCKSIZE); defer free(mem); let expected: [_]u8 = [