From 46f3d3e9758fc552439f1d44fb464e968b096ee8 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Sun, 10 Feb 2019 09:43:58 +0100 Subject: [PATCH] Made inst_data unsigned --- src/crypto/variant4_random_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/variant4_random_math.h b/src/crypto/variant4_random_math.h index f28bdbd62..2c69463fe 100644 --- a/src/crypto/variant4_random_math.h +++ b/src/crypto/variant4_random_math.h @@ -215,7 +215,7 @@ static inline int v4_random_math_init(struct V4_Instruction* code, const uint64_ // // Registers R4-R7 are constant and are treated as having the same value because when we do // the same operation twice with two constant source registers, it can be optimized into a single operation - int inst_data[8] = { 0, 1, 2, 3, -1, -1, -1, -1 }; + uint32_t inst_data[8] = { 0, 1, 2, 3, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF, 0xFFFFFF }; bool alu_busy[TOTAL_LATENCY + 1][ALU_COUNT]; bool is_rotation[V4_INSTRUCTION_COUNT];