mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
array.c (ary_expand_capa): remove unnecessary condition check
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user