From 11cbcfcfc547bdb7a2132701cb63234f210d0ac9 Mon Sep 17 00:00:00 2001 From: Menno Vink Date: Sun, 27 Mar 2022 18:34:29 +0200 Subject: [PATCH] Simplify the code to keep xcode happy --- include/vk_mem_alloc.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/vk_mem_alloc.h b/include/vk_mem_alloc.h index b74232a..c424ab9 100644 --- a/include/vk_mem_alloc.h +++ b/include/vk_mem_alloc.h @@ -5879,9 +5879,14 @@ private: void PostMinorCounter() { if(m_MinorCounter < m_MajorCounter) + { ++m_MinorCounter; + } else if(m_MajorCounter > 0) - --m_MajorCounter, --m_MinorCounter; + { + --m_MajorCounter; + --m_MinorCounter; + } } };