mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
Common/FIFOQueue: Fix incorrect assertion failure in debug builds
This commit is contained in:
parent
e81df6bddd
commit
4c9e0299ed
|
@ -151,7 +151,7 @@ public:
|
||||||
|
|
||||||
void AdvanceTail(u32 count)
|
void AdvanceTail(u32 count)
|
||||||
{
|
{
|
||||||
DebugAssert((m_size + count) < CAPACITY);
|
DebugAssert((m_size + count) <= CAPACITY);
|
||||||
DebugAssert((m_tail + count) <= CAPACITY);
|
DebugAssert((m_tail + count) <= CAPACITY);
|
||||||
m_tail = (m_tail + count) % CAPACITY;
|
m_tail = (m_tail + count) % CAPACITY;
|
||||||
m_size += count;
|
m_size += count;
|
||||||
|
|
Loading…
Reference in a new issue