diff --git a/src/crypto/wild_keccak.cpp b/src/crypto/wild_keccak.cpp index d0297fd6..c34216ee 100644 --- a/src/crypto/wild_keccak.cpp +++ b/src/crypto/wild_keccak.cpp @@ -177,7 +177,7 @@ namespace crypto uint64_t primary_item_index = (hash_index - (hash_index % 10)) / 10; uint64_t sha_count = hash_index % 10; crypto::hash res = scratchpad_light[primary_item_index]; - for (int i = 0; i != sha_count; i++) + for (uint64_t i = 0; i != sha_count; i++) { res = cn_fast_hash(&res, sizeof(res)); } diff --git a/src/currency_core/scratchpad_helper.h b/src/currency_core/scratchpad_helper.h index dce6b4e9..515acd56 100644 --- a/src/currency_core/scratchpad_helper.h +++ b/src/currency_core/scratchpad_helper.h @@ -7,6 +7,8 @@ #include "currency_protocol/blobdatatype.h" #include "currency_core/currency_basic.h" #include "cache_helper.h" +#include "currency_core/currency_format_utils.h" +#include "currency_core/currency_format_utils_blocks.h" namespace currency {