aboutsummaryrefslogtreecommitdiffstats
path: root/alc/ringbuffer.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-05-19 12:15:57 -0700
committerChris Robinson <[email protected]>2020-05-19 12:15:57 -0700
commitc5e90ed6c7878178d92aef372d67ed12d126bfc0 (patch)
treed4761b076ce4b14ed0094dea641fdb75dc7b7e0f /alc/ringbuffer.cpp
parent825206bfa2b59ae124cc8fb34c5b668f8a682224 (diff)
Use an enum for FamCount
Diffstat (limited to 'alc/ringbuffer.cpp')
-rw-r--r--alc/ringbuffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/ringbuffer.cpp b/alc/ringbuffer.cpp
index f4146a7d..5d891dbe 100644
--- a/alc/ringbuffer.cpp
+++ b/alc/ringbuffer.cpp
@@ -50,7 +50,7 @@ RingBufferPtr RingBuffer::Create(size_t sz, size_t elem_sz, int limit_writes)
throw std::overflow_error{"Ring buffer size overflow"};
const size_t bufbytes{power_of_two * elem_sz};
- RingBufferPtr rb{new (FamCount{bufbytes}) RingBuffer{bufbytes}};
+ RingBufferPtr rb{new(FamCount(bufbytes)) RingBuffer{bufbytes}};
rb->mWriteSize = limit_writes ? sz : (power_of_two-1);
rb->mSizeMask = power_of_two - 1;
rb->mElemSize = elem_sz;