aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src
diff options
context:
space:
mode:
authorRichard Carlsson <[email protected]>2019-03-11 16:01:22 +0100
committerRichard Carlsson <[email protected]>2019-03-11 16:17:59 +0100
commita52bd506e6b050b028f734cb9f90cf2e0a497d02 (patch)
treee75843ec54f6a744c4d7e881e7c603e82ad504d8 /lib/stdlib/src
parent0eefa1868ba65771077e57bafaa11b1834af7522 (diff)
downloadotp-a52bd506e6b050b028f734cb9f90cf2e0a497d02.tar.gz
otp-a52bd506e6b050b028f734cb9f90cf2e0a497d02.tar.bz2
otp-a52bd506e6b050b028f734cb9f90cf2e0a497d02.zip
Skip useless test in grow loop in array module
Diffstat (limited to 'lib/stdlib/src')
-rw-r--r--lib/stdlib/src/array.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/array.erl b/lib/stdlib/src/array.erl
index a65f7eb747..32bc2a3372 100644
--- a/lib/stdlib/src/array.erl
+++ b/lib/stdlib/src/array.erl
@@ -606,7 +606,7 @@ grow(I, E, M) ->
grow_1(I, E, M).
grow_1(I, E, M) when I >= M ->
- grow(I, setelement(1, ?NEW_NODE(M), E), ?extend(M));
+ grow_1(I, setelement(1, ?NEW_NODE(M), E), ?extend(M));
grow_1(_I, E, M) ->
{E, M}.