From 0c3e4af8f059eac391d8f712ac2017b628982fea Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 8 Jan 2024 23:02:04 +0100 Subject: [PATCH] jit/cache tests: Fix for powerpc*, ia64, hppa* CPUs, part 2. * tests/jit/test-cache.c (CODE): Fix mistake in last commit. --- tests/jit/test-cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jit/test-cache.c b/tests/jit/test-cache.c index 184e157776..86fe4c7aec 100644 --- a/tests/jit/test-cache.c +++ b/tests/jit/test-cache.c @@ -89,7 +89,7 @@ struct func #ifdef FUNCPTR_POINTS_TO_CODE /* A function pointer points directly to the code. */ # define COPY_FUNCPTR(funcptr) funcptr -# define CODE(funcptr) ((void*)(funcptr)) +# define CODE(funcptr) (funcptr) #else /* A function pointer points to a 'struct func'. */ static struct func *xcopy_funcptr (struct func *orig_funcptr) -- 2.39.5