mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-15 15:44:04 +00:00
use xar.len instead of len for accessing length of items
This commit is contained in:
@@ -49,7 +49,7 @@ dynamic_add :: proc(m: ^$D/Dynamic_Handle_Map($T, $Handle_Type), item: T, loc :=
|
||||
}
|
||||
|
||||
_ = xar.append(&m.items, item, loc) or_return
|
||||
i := len(m.items)-1
|
||||
i := xar.len(m.items)-1
|
||||
|
||||
ptr := xar.get_ptr_unsafe(&m.items, i)
|
||||
ptr^ = item
|
||||
|
||||
Reference in New Issue
Block a user