From 9557d6a64457e8282cf6961e47b19beb2fb6c44d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rom=C4=81ns=20Pota=C5=A1ovs?= Date: Fri, 4 Apr 2025 19:35:59 +0300 Subject: [PATCH] fix compiler issue --- src/ptr_map.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ptr_map.cpp b/src/ptr_map.cpp index 1c157c386..61f703cf1 100644 --- a/src/ptr_map.cpp +++ b/src/ptr_map.cpp @@ -15,7 +15,7 @@ static void *const MAP_TOMBSTONE = (void *)~(uintptr)0; template struct PtrMapEntry { static_assert(sizeof(K) == sizeof(void *), "Key size must be pointer size"); - + K key; V value; }; @@ -374,7 +374,7 @@ struct PtrMapIterator { } bool operator==(PtrMapIterator const &other) const noexcept { - return this->map == other->map && this->index == other->index; + return this->map == other.map && this->index == other.index; } operator PtrMapEntry *() const { @@ -858,4 +858,4 @@ gb_internal OrderedInsertPtrMapEntry *end(OrderedInsertPtrMap &m) { template gb_internal OrderedInsertPtrMapEntry const *end(OrderedInsertPtrMap const &m) { return m.entries + m.count; -} \ No newline at end of file +}