diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-01-25 17:08:32 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2022-01-25 17:08:32 +0100 |
| commit | 515fd2a228835afa71cefec645b906729cda399e (patch) | |
| tree | 6e40507134d2ac480d81413f8233621fddfb7f99 /core/container/bit_array/bit_array.odin | |
| parent | 65f8722afc0680b7b7fa47fd7060fd434243ae3c (diff) | |
bit_array: Fix initial size.
Diffstat (limited to 'core/container/bit_array/bit_array.odin')
| -rw-r--r-- | core/container/bit_array/bit_array.odin | 2 |
1 files changed, 1 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) } /* |