Skip to content

Commit

Permalink
regressions/ck_pr: fix type aliasing warning.
Browse files Browse the repository at this point in the history
Fixes #200
  • Loading branch information
Samy Al Bahra committed Jan 11, 2025
1 parent bf2db2b commit 4f1e5cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regressions/ck_pr/validate/ck_pr_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
{ \
uint##m##_t f = 0; \
uint##w##_t j = (uint##w##_t)-1; \
ck_pr_store_##w((uint##w##_t *)(void *)&f, j); \
void *f_p = &f; \
ck_pr_store_##w((uint##w##_t *)f_p, j); \
if (f != j) { \
printf("FAIL [%#" PRIx##m " != %#" PRIx##w "]\n", f, j);\
exit(EXIT_FAILURE); \
Expand Down

0 comments on commit 4f1e5cc

Please sign in to comment.