Browse Source

Elide unnecessary condition

Jeroen van Rijn 1 year ago
parent
commit
908a6ff2d4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/math/big/internal.odin

+ 1 - 1
core/math/big/internal.odin

@@ -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.
 			`[dynamic]DIGIT` already knows what allocator was used for it, so resize will do the right thing.
 		*/
 		*/
 		resize(&a.digit, needed)
 		resize(&a.digit, needed)
-	} else if cap > needed && allow_shrink {
+	} else if cap > needed {
 		/*
 		/*
 			Same applies to builtin.shrink here as resize above
 			Same applies to builtin.shrink here as resize above
 		*/
 		*/