Merge pull request #1588 from ap29600/master

Fix leak in `core:container/bit_array`
This commit is contained in:
gingerBill
2022-03-06 09:43:12 +00:00
committed by GitHub

View File

@@ -1,6 +1,7 @@
package dynamic_bit_array
import "core:intrinsics"
import "core:mem"
/*
Note that these constants are dependent on the backing being a u64.
@@ -206,7 +207,7 @@ create :: proc(max_index: int, min_index := 0, allocator := context.allocator) -
*/
clear :: proc(ba: ^Bit_Array) {
if ba == nil { return }
ba.bits = {}
mem.zero_slice(ba.bits[:])
}
/*