aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-03-15 17:08:51 +0200
committerRiccardo Spagni <ric@spagni.net>2018-03-15 17:08:51 +0200
commit0683f3190d09001fe3690613f796a0de0c4cee4c (patch)
treef67c5dc16f656b306ed6099e3408f306bf88232b
parentMerge pull request #3271 (diff)
parenttests/hash: correctly reference crypto HASH_SIZE for less confusion (diff)
downloadmonero-0683f3190d09001fe3690613f796a0de0c4cee4c.tar.xz
Merge pull request #3403
843f65cb tests/hash: correctly reference crypto HASH_SIZE for less confusion (AnythingTechPro)
-rw-r--r--tests/hash/main.cpp2
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*/);