diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-03 00:43:39 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-03 00:43:39 +0000 |
commit | eb3c563fa6664db186db5d8453e7d79a1a94e227 (patch) | |
tree | 4d37ea61adae25da7d013badac0a997b76f303a3 /vm_args.c | |
parent | 21ab98a997d2ed44c9c95cf5434a42561b2cd688 (diff) | |
download | ruby-eb3c563fa6664db186db5d8453e7d79a1a94e227.tar.gz |
* vm_args.c: fixed build error with clang
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_args.c')
-rw-r--r-- | vm_args.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -574,7 +574,7 @@ setup_parameters_complex(rb_thread_t * const th, const rb_iseq_t * const iseq, r iseq->param.opt_num > 2 || iseq->param.flags.has_kw || iseq->param.flags.has_kwrest) && /* TODO: can be shrink with flags */ !iseq->param.flags.ambiguous_param0 && args_check_block_arg0(args, th, msl)) { - given_argc = RARRAY_LEN(args->rest); + given_argc = RARRAY_LENINT(args->rest); } break; case arg_setup_lambda: @@ -582,7 +582,7 @@ setup_parameters_complex(rb_thread_t * const th, const rb_iseq_t * const iseq, r given_argc != iseq->param.lead_num && !iseq->param.flags.has_rest && args_check_block_arg0(args, th, msl)) { - given_argc = RARRAY_LEN(args->rest); + given_argc = RARRAY_LENINT(args->rest); } } |