From: Brendan Hansen Date: Sun, 24 Apr 2022 00:20:40 +0000 (-0500) Subject: I should really test things before I commit... X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=44aa42a976638bd322e054d7436b5f70bb89cc9a;p=onyx.git I should really test things before I commit... --- diff --git a/core/container/set.onyx b/core/container/set.onyx index 4ce203ed..f9f28a8f 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) {