]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
jit/cache-tests: omit confusing cast.
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 8 May 2026 20:09:44 +0000 (13:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 9 May 2026 03:25:25 +0000 (20:25 -0700)
* tests/jit/test-cache.c (SET_CODE): Omit cast of char * to char *.

ChangeLog
tests/jit/test-cache.c

index a78f3477e8147deabbb32eb113efe75f448f182f..c159914c5b0236c001f58e9408c591cacc183e5c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2026-05-08  Paul Eggert  <eggert@cs.ucla.edu>
 
+       jit/cache-tests: omit confusing cast.
+       * tests/jit/test-cache.c (SET_CODE): Omit cast of char * to char *.
+
        wait-process: omit confusing cast
        * lib/wait-process.c (wait_subprocess): Omit confusing cast.
 
index d465fba0ede9e862e13db6948546cd65baf3e631..8bf152f4ed948f72429632f5637085e443d943a1 100644 (file)
@@ -116,7 +116,7 @@ struct func
 # else
 #  define CODE(funcptr) ((char *) (funcptr) - clang_ubsan_workaround)
 #  define SET_CODE(funcptr,code_addr) \
-     ((void) ((funcptr) = (void *) ((char *) (code_addr) + clang_ubsan_workaround)))
+     ((void) ((funcptr) = (void *) ((code_addr) + clang_ubsan_workaround)))
 #  define IS(funcptr) ((void) (funcptr), 0)
 #  define SET_IS(funcptr,is) ((void) (funcptr), (void) (is))
 # endif