From 96c5223e44bbdaa3b3337dbfe7976a7411a07a9b Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Fri, 30 Jan 2026 21:03:58 -0600 Subject: [PATCH] [ox/std] Fix possible false positive in HashMap::operator== --- deps/ox/src/ox/std/hashmap.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/deps/ox/src/ox/std/hashmap.hpp b/deps/ox/src/ox/std/hashmap.hpp index 5f9b81d4..38bbab1c 100644 --- a/deps/ox/src/ox/std/hashmap.hpp +++ b/deps/ox/src/ox/std/hashmap.hpp @@ -109,7 +109,9 @@ constexpr bool HashMap::operator==(HashMap const &other) const { for (auto &k : m_keys) { auto const a = at(k).value; auto const b = other.at(k).value; - if (a && b && *a != *b) { + if ( + a != b && // handle one being null and other not + (a && b && *a != *b)) { return false; } }