mrubyを超漢字で動作させる
Revision | 758096334f467dc3ac6753cb8769c9368388ed1b (tree) |
---|---|
Zeit | 2012-04-21 00:29:01 |
Autor | Patrick Hogan <pbhogan@gmai...> |
Commiter | Patrick Hogan |
Remove unnecessary check for size_t < 0
size_t can never be negative since it is an unsigned integer according to standard. Removed to silence warning.
Signed-off-by: Patrick Hogan <pbhogan@gmail.com>
@@ -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"); |