array.c (ary_expand_capa): remove unnecessary condition check

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-01-06 14:32:54 +09:00
parent 2eeb19a5ed
commit d47f1b4df3
+1 -1
View File
@@ -215,7 +215,7 @@ ary_expand_capa(mrb_state *mrb, struct RArray *a, mrb_int len)
capa = len;
}
}
if (capa < len || capa > ARY_MAX_SIZE) {
if (capa > ARY_MAX_SIZE) {
ary_too_big(mrb);
}