diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2025-01-20 19:51:46 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2025-01-20 19:51:46 +0100 |
| commit | a5f3c1b84960ef3f0175d319acdb958769862397 (patch) | |
| tree | c1d59b2e3bd3abe356c3b83029768a1b3c463fd2 /core/container/queue | |
| parent | 70257c846e43c8fa93381da5be4030c4ce5c1379 (diff) | |
container/queue: fix init_with_contents
Fixes #4729
Diffstat (limited to 'core/container/queue')
| -rw-r--r-- | core/container/queue/queue.odin | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/container/queue/queue.odin b/core/container/queue/queue.odin index f83a5f2b7..d1040a7c9 100644 --- a/core/container/queue/queue.odin +++ b/core/container/queue/queue.odin @@ -46,8 +46,7 @@ init_with_contents :: proc(q: ^$Q/Queue($T), backing: []T) -> bool { cap = builtin.len(backing), allocator = {procedure=runtime.nil_allocator_proc, data=nil}, } - q.len = len(backing) - q.offset = len(backing) + q.len = builtin.len(backing) return true } |