ruby-changes:36164
From: hsbt <ko1@a...>
Date: Mon, 3 Nov 2014 09:43:44 +0900 (JST)
Subject: [ruby-changes:36164] hsbt:r48245 (trunk): * vm_args.c: fixed build error with clang
hsbt 2014-11-03 09:43:39 +0900 (Mon, 03 Nov 2014) New Revision: 48245 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48245 Log: * vm_args.c: fixed build error with clang Modified files: trunk/ChangeLog trunk/vm_args.c Index: ChangeLog =================================================================== --- ChangeLog (revision 48244) +++ ChangeLog (revision 48245) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Mon Nov 3 09:43:30 2014 SHIBATA Hiroshi <shibata.hiroshi@g...> + + * vm_args.c: fixed build error with clang + Mon Nov 3 09:32:46 2014 NARUSE, Yui <naruse@r...> * lib/uri/rfc3986_parser.rb (URI::RFC3986_Parser::RFC3986_URI): Index: vm_args.c =================================================================== --- vm_args.c (revision 48244) +++ vm_args.c (revision 48245) @@ -574,7 +574,7 @@ setup_parameters_complex(rb_thread_t * c https://github.com/ruby/ruby/blob/trunk/vm_args.c#L574 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 * c https://github.com/ruby/ruby/blob/trunk/vm_args.c#L582 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); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/