diff options
author | Chris Robinson <[email protected]> | 2016-11-03 01:22:29 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-11-03 01:22:29 -0700 |
commit | 815947492c9df58ab4872fd643b09ada5d2033ef (patch) | |
tree | b38f3799824ae79f8bb93db2a6be2fd726d12e2a /Alc/alcRing.c | |
parent | 9682a62743091463b8cfac540dbbf854d33128e5 (diff) |
Remove the explicit type from ATOMIC_ADD and ATOMIC_SUB
Diffstat (limited to 'Alc/alcRing.c')
-rw-r--r-- | Alc/alcRing.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alcRing.c b/Alc/alcRing.c index 8a77dda1..d3059f86 100644 --- a/Alc/alcRing.c +++ b/Alc/alcRing.c @@ -233,13 +233,13 @@ size_t ll_ringbuffer_write(ll_ringbuffer_t *rb, const char *src, size_t cnt) /* Advance the read pointer `cnt' places. */ void ll_ringbuffer_read_advance(ll_ringbuffer_t *rb, size_t cnt) { - ATOMIC_ADD(size_t, &rb->read_ptr, cnt, almemory_order_acq_rel); + ATOMIC_ADD(&rb->read_ptr, cnt, almemory_order_acq_rel); } /* Advance the write pointer `cnt' places. */ void ll_ringbuffer_write_advance(ll_ringbuffer_t *rb, size_t cnt) { - ATOMIC_ADD(size_t, &rb->write_ptr, cnt, almemory_order_acq_rel); + ATOMIC_ADD(&rb->write_ptr, cnt, almemory_order_acq_rel); } /* The non-copying data reader. `vec' is an array of two places. Set the values |