aboutsummaryrefslogtreecommitdiff
path: root/src/interp.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2025-03-26 13:17:58 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2025-03-26 13:17:58 +0200
commit67a13eb82534996fbd6ba2fc0c36d3e1284bcd8e (patch)
tree21561c3209cc77c79d32284541c01ab60fec7791 /src/interp.c
parent912c07167705613c6db70e542723c7ec2c06c7ea (diff)
downloadejit-67a13eb82534996fbd6ba2fc0c36d3e1284bcd8e.tar.gz
ejit-67a13eb82534996fbd6ba2fc0c36d3e1284bcd8e.zip
handle immediates a bit better
+ Passing floats as immediate values is not supported in lightening, but I might have a go at adding it since it seems like a useful feature at some point
Diffstat (limited to 'src/interp.c')
-rw-r--r--src/interp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interp.c b/src/interp.c
index 80a9edc..aa40c53 100644
--- a/src/interp.c
+++ b/src/interp.c
@@ -1009,7 +1009,7 @@ union interp_ret ejit_run(struct ejit_func *f, size_t paramc, struct ejit_arg pa
if (i.r1 == EJIT_DOUBLE)
a = ejit_build_arg_f(i.r1, i.d);
else
- a = ejit_build_arg_f(i.r1, i.f);
+ a = ejit_build_arg_f(i.r1, i.d);
args[argc++] = a;
DISPATCH();