projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abd77f4
)
I should really test things before I commit...
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sun, 24 Apr 2022 00:20:40 +0000
(19:20 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Sun, 24 Apr 2022 00:20:40 +0000
(19:20 -0500)
core/container/set.onyx
patch
|
blob
|
history
diff --git
a/core/container/set.onyx
b/core/container/set.onyx
index 4ce203ed942e065cf7f973a1d80df74792f5e0e1..f9f28a8f03f0c970f9b4a18dfb597d2093ff8203 100644
(file)
--- 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) {