From 65209204389fb857daa8ae242188091d252458d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 10 Apr 2022 16:18:23 +0200 Subject: [PATCH] :bug: Fix float_imm instructions --- 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 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; \ -- 2.43.0