mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-07 11:04:17 +00:00
replace a branch with max in core:container/bit_array.set
This commit is contained in:
@@ -178,7 +178,7 @@ set :: proc(ba: ^Bit_Array, #any_int index: uint, allocator := context.allocator
|
||||
|
||||
resize_if_needed(ba, leg_index) or_return
|
||||
|
||||
if idx > ba.max_index { ba.max_index = idx }
|
||||
ba.max_index = max(idx, ba.max_index)
|
||||
ba.bits[leg_index] |= 1 << uint(bit_index)
|
||||
return true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user