From aa474fa51bc56d8e2dc271b1bdd505ae86d88e9f Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 5 Mar 2019 00:49:04 +0700 Subject: [PATCH] Fix compile warnings. --- algo/cryptonight/cryptonight_r_av2.c | 8 ++++---- algo/cryptonight/cryptonight_r_av3.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/algo/cryptonight/cryptonight_r_av2.c b/algo/cryptonight/cryptonight_r_av2.c index 95a121327..db64145a9 100644 --- a/algo/cryptonight/cryptonight_r_av2.c +++ b/algo/cryptonight/cryptonight_r_av2.c @@ -166,8 +166,8 @@ void cryptonight_r_av2_asm_intel(const uint8_t *restrict input, size_t size, uin cn_implode_scratchpad((__m128i*) ctx[0]->memory, (__m128i*) ctx[0]->state); cn_implode_scratchpad((__m128i*) ctx[1]->memory, (__m128i*) ctx[1]->state); - keccakf(ctx[0]->state, 24); - keccakf(ctx[1]->state, 24); + keccakf((uint64_t *) ctx[0]->state, 24); + keccakf((uint64_t *) ctx[1]->state, 24); extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output); extra_hashes[ctx[1]->state[0] & 3](ctx[1]->state, 200, output + 32); @@ -193,8 +193,8 @@ void cryptonight_r_av2_asm_bulldozer(const uint8_t *restrict input, size_t size, cn_implode_scratchpad((__m128i*) ctx[0]->memory, (__m128i*) ctx[0]->state); cn_implode_scratchpad((__m128i*) ctx[1]->memory, (__m128i*) ctx[1]->state); - keccakf(ctx[0]->state, 24); - keccakf(ctx[1]->state, 24); + keccakf((uint64_t *) ctx[0]->state, 24); + keccakf((uint64_t *) ctx[1]->state, 24); extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output); extra_hashes[ctx[1]->state[0] & 3](ctx[1]->state, 200, output + 32); diff --git a/algo/cryptonight/cryptonight_r_av3.c b/algo/cryptonight/cryptonight_r_av3.c index 6ba199f1b..a322ebcd8 100644 --- a/algo/cryptonight/cryptonight_r_av3.c +++ b/algo/cryptonight/cryptonight_r_av3.c @@ -107,6 +107,6 @@ void cryptonight_r_av3(const uint8_t *restrict input, size_t size, uint8_t *rest # endif cn_implode_scratchpad((__m128i*) ctx[0]->memory, (__m128i*) ctx[0]->state); - keccakf(ctx[0]->state, 24); + keccakf((uint64_t *) ctx[0]->state, 24); extra_hashes[ctx[0]->state[0] & 3](ctx[0]->state, 200, output); }