Skip to content

Commit 4f1e5cc

Browse files
author
Samy Al Bahra
committed
regressions/ck_pr: fix type aliasing warning.
Fixes #200
1 parent bf2db2b commit 4f1e5cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

regressions/ck_pr/validate/ck_pr_store.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767
{ \
6868
uint##m##_t f = 0; \
6969
uint##w##_t j = (uint##w##_t)-1; \
70-
ck_pr_store_##w((uint##w##_t *)(void *)&f, j); \
70+
void *f_p = &f; \
71+
ck_pr_store_##w((uint##w##_t *)f_p, j); \
7172
if (f != j) { \
7273
printf("FAIL [%#" PRIx##m " != %#" PRIx##w "]\n", f, j);\
7374
exit(EXIT_FAILURE); \

0 commit comments

Comments
 (0)