From 89d9f5c3fc59eff3b1a46fe6d44f5ee92eeb7be4 Mon Sep 17 00:00:00 2001
From: Kimplul <kimi.h.kuparinen@gmail.com>
Date: Wed, 2 Apr 2025 21:16:13 +0300
Subject: armhf seems to work

---
 src/compile/compile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/compile/compile.c')

diff --git a/src/compile/compile.c b/src/compile/compile.c
index dac8dfd..3b5399a 100644
--- a/src/compile/compile.c
+++ b/src/compile/compile.c
@@ -1927,7 +1927,7 @@ static void compile_trampoline(struct ejit_func *f, jit_state_t *j)
 			jit_leave_jit_abi(j, 0, 0, frame);
 			jit_ret(j); /* should just forward the return value */
 
-			f->direct_call = jit_address(j);
+			f->direct_call = jit_address_to_function_pointer(jit_address(j));
 			jit_patch_here(j, r);
 
 			operands_destroy(&args);
@@ -2435,7 +2435,7 @@ calli:
 	relocs_destroy(&relocs);
 	addrs_destroy(&addrs);
 
-	if (jit_end(j, &size))
+	if ((f->extern_call = jit_end(j, &size)))
 		return 0;
 
 	return size;
-- 
cgit v1.2.3