From f5ee1a3657a23ca0f30cbdf0b979b8d33a96ea5a Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Tue, 17 Aug 2021 18:51:04 +0200 Subject: [PATCH] :art: Fix float logical imm opcode --- src/vm/vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm/vm.c b/src/vm/vm.c index 31c23a39..37546c5e 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -336,7 +336,7 @@ ANN static VM_Shred init_fork_shred(const VM_Shred shred, const VM_Code code, #define FLOAT_IMM_LOGICAL(op) \ reg -= SZ_FLOAT - SZ_INT;\ - *(m_uint *)(reg - SZ_INT) = *(m_float*)(reg-SZ_INT) op FVAL; DISPATCH(); + *(m_uint *)(reg - SZ_INT) = *(m_float*)(reg-SZ_INT+SZ_FLOAT) op FVAL; DISPATCH(); #define SELF(t, sz, op) \ *(t *)(reg - sz) = op * (t *)(reg - sz); \ -- 2.43.0