mrubyを超漢字で動作させる
修订版 | f086dbd53696d6d0f460c3e8b8d4c90c9dba949e (tree) |
---|---|
时间 | 2012-04-21 00:58:19 |
作者 | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
Merge pull request #25 from pbhogan/remove-unnecessary-check
Remove unnecessary check for size_t < 0
@@ -35,9 +35,6 @@ mrb_ary_new_capa(mrb_state *mrb, size_t capa) | ||
35 | 35 | { |
36 | 36 | struct RArray *a; |
37 | 37 | |
38 | - if (capa < 0) { | |
39 | - mrb_raise(mrb, E_ARGUMENT_ERROR, "negative ary size (or size too big)"); | |
40 | - } | |
41 | 38 | #ifdef LONG_MAX |
42 | 39 | if (capa > ARY_MAX_SIZE) { |
43 | 40 | mrb_raise(mrb, E_ARGUMENT_ERROR, "ary size too big"); |