diff options
author | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-10 22:23:08 +0300 |
---|---|---|
committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2025-04-10 22:23:08 +0300 |
commit | 7628ce2432108ae6306457f242e7cc3ac75b9ac0 (patch) | |
tree | 32a7b59f0e91b4c82bdeb4de3f75c1a04cc247da /tests/escapei_double.c | |
parent | 0ba52d9043985baff61d4fae225420274d9ad9ab (diff) | |
parent | 531d307d310881e69efc8ae8c8119f5f5799e0f9 (diff) | |
download | ejit-7628ce2432108ae6306457f242e7cc3ac75b9ac0.tar.gz ejit-7628ce2432108ae6306457f242e7cc3ac75b9ac0.zip |
Diffstat (limited to 'tests/escapei_double.c')
-rw-r--r-- | tests/escapei_double.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/escapei_double.c b/tests/escapei_double.c index 6ea9f90..736e978 100644 --- a/tests/escapei_double.c +++ b/tests/escapei_double.c @@ -9,10 +9,8 @@ static double func(int32_t a, double b) { static double escape_func(size_t argc, const struct ejit_arg args[argc]) { assert(argc == 2); - assert(args[0].type == EJIT_INT32); - assert(args[1].type == EJIT_DOUBLE); - int32_t a = args[0].i32; - double b = args[1].d; + int32_t a = EJIT_PARAM(argc, args, 0, int32_t); + double b = EJIT_PARAM(argc, args, 1, double); return func(a, b); } |