diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-27 13:58:41 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-27 13:58:41 +0100 |
| commit | 8ecee32e1c9002e7cb29fb9ebe2cb4b149ce19ac (patch) | |
| tree | 02ee7648a58a3b2da63e258797a7c0f38a7c35e3 /core/container | |
| parent | 6a7d821fcc42e58bb90b78f484c70dfa42a56c91 (diff) | |
| parent | 16786aac78e343fb11a5bd6c971ebb17ccd36f5c (diff) | |
Merge remote-tracking branch 'upstream/master' into parser-fix
Diffstat (limited to 'core/container')
| -rw-r--r-- | core/container/bit_array/bit_array.odin | 2 | ||||
| -rw-r--r-- | core/container/queue/queue.odin | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/core/container/bit_array/bit_array.odin b/core/container/bit_array/bit_array.odin index 61f6f86e8..0fa80c623 100644 --- a/core/container/bit_array/bit_array.odin +++ b/core/container/bit_array/bit_array.odin @@ -88,7 +88,7 @@ create :: proc(max_index: int, min_index := 0, allocator := context.allocator) - res = Bit_Array{ bias = min_index, } - return res, resize_if_needed(&res, size_in_bits) + return res, resize_if_needed(&res, legs) } /* diff --git a/core/container/queue/queue.odin b/core/container/queue/queue.odin index feca6934c..8ca3a85ac 100644 --- a/core/container/queue/queue.odin +++ b/core/container/queue/queue.odin @@ -2,6 +2,7 @@ package container_queue import "core:builtin" import "core:runtime" +_ :: runtime // Dynamically resizable double-ended queue/ring-buffer Queue :: struct($T: typeid) { |