summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPatrick Hogan <[email protected]>2012-04-20 09:52:10 -0500
committerPatrick Hogan <[email protected]>2012-04-20 10:29:01 -0500
commit758096334f467dc3ac6753cb8769c9368388ed1b (patch)
treebec9728e8aa6b6b741c3859d61c9813c4c54d3a6 /src
parente40e55da715cd4e67f388815645bf664600e4ccd (diff)
downloadmruby-758096334f467dc3ac6753cb8769c9368388ed1b.tar.gz
mruby-758096334f467dc3ac6753cb8769c9368388ed1b.zip
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/array.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/array.c b/src/array.c
index 69f5fd8b3..e3a0a3a9a 100644
--- a/src/array.c
+++ b/src/array.c
@@ -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");