Commit f086dbd5 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #25 from pbhogan/remove-unnecessary-check

Remove unnecessary check for size_t < 0
parents 3ea69ab4 75809633
......@@ -35,9 +35,6 @@ mrb_ary_new_capa(mrb_state *mrb, size_t capa)
{
struct RArray *a;
if (capa < 0) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "negative ary size (or size too big)");
}
#ifdef LONG_MAX
if (capa > ARY_MAX_SIZE) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "ary size too big");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment