From: Brendan Hansen Date: Sun, 24 Apr 2022 00:19:31 +0000 (-0500) Subject: fixed set.get_ptr X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=abd77f47b6ebd15caaab2f4d414944f103d08940;p=onyx.git fixed set.get_ptr --- diff --git a/core/container/set.onyx b/core/container/set.onyx index bd69c6c0..4ce203ed 100644 --- a/core/container/set.onyx +++ b/core/container/set.onyx @@ -90,7 +90,7 @@ get :: (use set: ^Set, value: set.Elem_Type) -> set.Elem_Type { get_ptr :: (use set: ^Set, value: set.Elem_Type) -> ^set.Elem_Type { lr := lookup(set, value); - return entries[lr.entry_index].value if lr.entry_index >= 0 else null; + return ^entries[lr.entry_index].value if lr.entry_index >= 0 else null; } remove :: (use set: ^Set, value: set.Elem_Type) {