From f5bf701618eb6fecc099771dcd39956dc17290e0 Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Fri, 23 Aug 2024 13:50:25 +0300 Subject: [PATCH] slot_vector: Back to debug assert --- src/common/slot_vector.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/slot_vector.h b/src/common/slot_vector.h index 2158d4d6..36e64797 100644 --- a/src/common/slot_vector.h +++ b/src/common/slot_vector.h @@ -107,9 +107,9 @@ private: } void ValidateIndex([[maybe_unused]] SlotId id) const noexcept { - ASSERT(id); - ASSERT(id.index / 64 < stored_bitset.size()); - ASSERT(((stored_bitset[id.index / 64] >> (id.index % 64)) & 1) != 0); + DEBUG_ASSERT(id); + DEBUG_ASSERT(id.index / 64 < stored_bitset.size()); + DEBUG_ASSERT(((stored_bitset[id.index / 64] >> (id.index % 64)) & 1) != 0); } [[nodiscard]] u32 FreeValueIndex() noexcept {