From 908a6ff2d487401b7e72cd1b7a3c1bd32c86c99a Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Fri, 14 Jun 2024 21:34:05 +0200 Subject: [PATCH] Elide unnecessary condition --- core/math/big/internal.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/math/big/internal.odin b/core/math/big/internal.odin index 360d063e9..29bdf555c 100644 --- a/core/math/big/internal.odin +++ b/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. */ resize(&a.digit, needed) - } else if cap > needed && allow_shrink { + } else if cap > needed { /* Same applies to builtin.shrink here as resize above */