From 1272e304b6367c7dd94d25acf88b2843adabb93a Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 5 Oct 2024 23:00:08 +0200 Subject: Fix rare data race I had some misconception about how _Atomic and const worked. This means the previous commit (expected distribution) could be incorrect. --- src/nissy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nissy.c') diff --git a/src/nissy.c b/src/nissy.c index 44efb83..561ef53 100644 --- a/src/nissy.c +++ b/src/nissy.c @@ -75,7 +75,7 @@ checkdata(const void *buf, const tableinfo_t *info) getdistribution_cocsep( (uint32_t *)((char *)buf + INFOSIZE), distr); } else if (!strncmp(info->solver, "h48", 3)) { - getdistribution_h48((uint8_t *)buf + INFOSIZE, distr, + getdistribution_h48((_Atomic uint8_t *)buf + INFOSIZE, distr, info->h48h, info->bits); } else { LOG("checkdata: unknown solver %s\n", info->solver); -- cgit v1.3