From: Jérémie Astor Date: Sun, 10 Apr 2022 14:18:23 +0000 (+0200) Subject: :bug: Fix float_imm instructions X-Git-Tag: nightly~328 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=65209204389fb857daa8ae242188091d252458d5;p=gwion.git :bug: Fix float_imm instructions --- diff --git a/src/vm/vm.c b/src/vm/vm.c index 1d82e31d..5ec758f9 100644 --- a/src/vm/vm.c +++ b/src/vm/vm.c @@ -316,7 +316,7 @@ ANN static VM_Shred init_fork_shred(const VM_Shred shred, const VM_Code code, #define INT_OP(op, ...) OP(m_int, SZ_INT, op, __VA_ARGS__) #define INT_IMM_OP(op) *(m_int*)(reg-SZ_INT) op VAL; DISPATCH() #define FLOAT_OP(op, ...) OP(m_float, SZ_FLOAT, op, __VA_ARGS__) -#define FLOAT_IMM_OP(op) *(m_float*)(reg-SZ_FLOAT) op VAL; DISPATCH() +#define FLOAT_IMM_OP(op) *(m_float*)(reg-SZ_FLOAT) op FVAL; DISPATCH() #define LOGICAL(t, sz0, sz, op) \ reg -= sz0; \