Fix issue with atomic variables needing writable variable even for reading only.

This commit is contained in:
Patrick Pelissier committed 2018-03-16 23:27:08 +01:00
1 parent 81e3515f40
commit c174b368e8
1 file changed
+1 -1
+1 -1
View File
@@ -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;