From c174b368e8c2536827835bfb93ca07c3c6b7f094 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Fri, 16 Mar 2018 23:27:08 +0100 Subject: [PATCH] Fix issue with atomic variables needing writable variable even for reading only. --- m-snapshot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/m-snapshot.h b/m-snapshot.h index cc4b19ab..c722bec5 100644 --- a/m-snapshot.h +++ b/m-snapshot.h @@ -336,7 +336,7 @@ static inline void snapshot_mrsw_int_clear(snapshot_mrsw_int_t s) s->n = 0; } -static inline unsigned int snapshot_mrsw_int_get_write_idx(const snapshot_mrsw_int_t s) +static inline unsigned int snapshot_mrsw_int_get_write_idx(snapshot_mrsw_int_t s) { SNAPSHOTI_SPMC_INT_CONTRACT(s); return s->currentWrite;