Add a cast to avoid a warning with some compilers

(I am not sure the warning was justified).
This commit is contained in:
Patrick Pelissier committed 2018-04-19 22:13:53 +02:00
1 parent 3be27aefa3
commit 704fb0cbd9
1 file changed
+1 -1
+1 -1
View File
@@ -295,7 +295,7 @@ typedef struct snapshot_mrsw_int_s {
#define SNAPSHOTI_SPMC_INT_CONTRACT(s) do { \
assert (s != NULL); \
assert (s->n > 0 && s->n <= SNAPSHOTI_SPMC_MAX_READER); \
assert (SNAPSHOTI_SPMC_INT_FLAG_W(atomic_load(&s->lastNext)) \
assert ((size_t)SNAPSHOTI_SPMC_INT_FLAG_W(atomic_load(&s->lastNext)) \
<= s->n + SNAPSHOTI_SPMC_EXTRA_BUFFER); \
assert (s->cptTab != NULL); \
} while (0)