Skip to content

Commit 11cbcfc

Browse files
committed
Simplify the code to keep xcode happy
1 parent 54d356e commit 11cbcfc

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

include/vk_mem_alloc.h

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5879,9 +5879,14 @@ class VmaMappingHysteresis
58795879
void PostMinorCounter()
58805880
{
58815881
if(m_MinorCounter < m_MajorCounter)
5882+
{
58825883
++m_MinorCounter;
5884+
}
58835885
else if(m_MajorCounter > 0)
5884-
--m_MajorCounter, --m_MinorCounter;
5886+
{
5887+
--m_MajorCounter;
5888+
--m_MinorCounter;
5889+
}
58855890
}
58865891
};
58875892

0 commit comments

Comments
 (0)