]> Savannah Git Hosting - gnulib.git/commitdiff
jit/cache tests: Fix for powerpc*, ia64, hppa* CPUs, part 2.
authorBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2024 22:02:04 +0000 (23:02 +0100)
committerBruno Haible <bruno@clisp.org>
Mon, 8 Jan 2024 22:02:04 +0000 (23:02 +0100)
* tests/jit/test-cache.c (CODE): Fix mistake in last commit.

tests/jit/test-cache.c

index 184e157776b6d616d231ed2cb5ce56dd284aae99..86fe4c7aecc2dc863d1ba92de97a0212b7b12bac 100644 (file)
@@ -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)