From 02fa018869eca949b0fa3c70b05fa96a1be62e70 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 19 Jan 2022 15:53:37 -0400 Subject: sux.h: Make `rs` non const. --- sux.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sux.h b/sux.h index 43043db..1efae9d 100644 --- a/sux.h +++ b/sux.h @@ -1792,7 +1792,7 @@ static /*inline*/ void exec_base_inst(struct sux *cpu, uint8_t opcode, uint8_t p #define inst(op, ext) \ 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)) - 1; \ + uint8_t rs = ((1 << ((prefix >> 4) & 3)) - 1); \ uint64_t addr = 0, idx = 0, tmp = 0, tmp2 = 0; \ uint64_t dummy = 0, *reg = &dummy; \ int pre_idx = 0, mem_type = ZM; \ -- cgit v1.2.3-13-gbd6f