From 276266a5d1b57b508da6e16a274f3aa778dff8a2 Mon Sep 17 00:00:00 2001 From: assiduous Date: Thu, 2 Jul 2020 11:59:10 -0700 Subject: VariableSizeAllocationsManager: fixed bug in a debug assertion --- .../GraphicsAccessories/interface/VariableSizeAllocationsManager.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Graphics') diff --git a/Graphics/GraphicsAccessories/interface/VariableSizeAllocationsManager.hpp b/Graphics/GraphicsAccessories/interface/VariableSizeAllocationsManager.hpp index 0788db23..14bf1681 100644 --- a/Graphics/GraphicsAccessories/interface/VariableSizeAllocationsManager.hpp +++ b/Graphics/GraphicsAccessories/interface/VariableSizeAllocationsManager.hpp @@ -381,7 +381,8 @@ public: NewBlockOffset = LastBlockOffset; NewBlockSize += LastBlockSize; - VERIFY_EXPR(LastBlockIt->second.OrderBySizeIt->first == LastBlockOffset); + VERIFY_EXPR(LastBlockIt->second.OrderBySizeIt->first == LastBlockSize && + LastBlockIt->second.OrderBySizeIt->second == LastBlockIt); m_FreeBlocksBySize.erase(LastBlockIt->second.OrderBySizeIt); m_FreeBlocksByOffset.erase(LastBlockIt); } -- cgit v1.2.3