From: Jérémie Astor Date: Tue, 17 Aug 2021 16:51:04 +0000 (+0200) Subject: :art: Fix float logical imm opcode X-Git-Tag: nightly~470^2~67 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f5ee1a3657a23ca0f30cbdf0b979b8d33a96ea5a;p=gwion.git :art: Fix float logical imm opcode --- 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); \