Skip to content

Commit

Permalink
Clarify ambiguity between size_t and DWORD
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Feb 4, 2024
1 parent 2c9e9fd commit 739bda1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alc/backends/winmm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void WinMMCapture::open(std::string_view name)

// Allocate circular memory buffer for the captured audio
// Make sure circular buffer is at least 100ms in size
const auto CapturedDataSize = std::max(size_t{mDevice->BufferSize},
const auto CapturedDataSize = std::max<size_t>(mDevice->BufferSize,
BufferSize*mWaveBuffer.size());

mRing = RingBuffer::Create(CapturedDataSize, mFormat.nBlockAlign, false);
Expand Down

0 comments on commit 739bda1

Please sign in to comment.