summaryrefslogtreecommitdiff
path: root/vm_args.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-03 00:43:39 (GMT)
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-03 00:43:39 (GMT)
commiteb3c563fa6664db186db5d8453e7d79a1a94e227 (patch)
tree4d37ea61adae25da7d013badac0a997b76f303a3 /vm_args.c
parent21ab98a997d2ed44c9c95cf5434a42561b2cd688 (diff)
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_args.c b/vm_args.c
index c1f460a..989fc10 100644
--- a/vm_args.c
+++ b/vm_args.c
@@ -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);
}
}