summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2022-01-18 09:03:01 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2022-01-18 09:03:01 -0400
commit000b49deb09fdc275f5aae27c086bc09a3af0d5e (patch)
tree4db0125c5aa4281babe9268ee4b2764609d1c5ee
parent52f76db6bb4310c0c553c89d9fe9b471ee976d77 (diff)
Initialize `tmp`, and `tmp2` to `0`, rather than `-1`.
-rw-r--r--sux.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sux.h b/sux.h
index e89dbc7..c626bc9 100644
--- a/sux.h
+++ b/sux.h
@@ -1793,7 +1793,7 @@ static /*inline*/ void exec_base_inst(struct sux *cpu, uint8_t opcode, uint8_t p
static /*inline*/ void inst_##op(struct sux *cpu, uint8_t prefix, uint8_t size, int inc_pc, int inc_clk, uint8_t thread) { \
const unsigned int o8 = 0x##op / 32, o8m = 1 << (0x##op % 32); \
const uint8_t rs = 1 << ((prefix >> 4) & 3); \
- uint64_t addr = 0, idx = 0, tmp = -1, tmp2 = -1; \
+ uint64_t addr = 0, idx = 0, tmp = 0, tmp2 = 0; \
uint64_t dummy = 0, *reg = &dummy; \
int pre_idx = 0, mem_type = ZM; \
uint8_t pbits = 0x##op < 0x100 ? 0x10 : 0; \