mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-19 04:50:29 +00:00
Elide unnecessary condition
This commit is contained in:
@@ -2187,7 +2187,7 @@ internal_int_grow :: proc(a: ^Int, digits: int, allow_shrink := false, allocator
|
||||
`[dynamic]DIGIT` already knows what allocator was used for it, so resize will do the right thing.
|
||||
*/
|
||||
resize(&a.digit, needed)
|
||||
} else if cap > needed && allow_shrink {
|
||||
} else if cap > needed {
|
||||
/*
|
||||
Same applies to builtin.shrink here as resize above
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user