From 215ac4569f897b10215248c4caa3191919a555df Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sat, 13 Jul 2024 22:31:00 +0300 Subject: implement some more jit instructions --- src/interp.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/interp.c') diff --git a/src/interp.c b/src/interp.c index a86b754..8462112 100644 --- a/src/interp.c +++ b/src/interp.c @@ -850,7 +850,10 @@ union interp_ret ejit_interp(struct ejit_func *f, size_t argc, DISPATCH(); DO(PARAM_F); - fpr[i.r2] = args[i.r0].d; + if (i.r1 == EJIT_FLOAT) + fpr[i.r2] = args[i.r0].f; + else + fpr[i.r2] = args[i.r0].d; DISPATCH(); DO(ARG); -- cgit v1.2.3