diff options
| author | AnythingTechPro <anythingtechpro@gmail.com> | 2018-03-14 11:10:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-14 11:10:54 -0400 |
| commit | 843f65cbda2bd4840cf441779700fa71d574c7cd (patch) | |
| tree | e48dbbe4c275029ee7e542b9872ac9387f9f0ad2 /tests/hash/main.cpp | |
| parent | a69c713f8e7717bc29c8a02d9d32a580f880562f (diff) | |
| download | monzero-core-843f65cbda2bd4840cf441779700fa71d574c7cd.tar.gz monzero-core-843f65cbda2bd4840cf441779700fa71d574c7cd.tar.xz monzero-core-843f65cbda2bd4840cf441779700fa71d574c7cd.zip | |
tests/hash: correctly reference crypto HASH_SIZE for less confusion
Diffstat (limited to 'tests/hash/main.cpp')
| -rw-r--r-- | tests/hash/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hash/main.cpp b/tests/hash/main.cpp index c7e1fe712..cc5b9ba66 100644 --- a/tests/hash/main.cpp +++ b/tests/hash/main.cpp @@ -49,7 +49,7 @@ extern "C" { if ((length & 31) != 0) { throw ios_base::failure("Invalid input length for tree_hash"); } - tree_hash((const char (*)[32]) data, length >> 5, hash); + tree_hash((const char (*)[crypto::HASH_SIZE]) data, length >> 5, hash); } static void cn_slow_hash_0(const void *data, size_t length, char *hash) { return cn_slow_hash(data, length, hash, 0/*variant*/, 0/*prehashed*/); |
