ruby-changes:33779
From: nobu <ko1@a...>
Date: Wed, 7 May 2014 17:10:06 +0900 (JST)
Subject: [ruby-changes:33779] nobu:r45860 (trunk): numeric.c: merge miss
nobu 2014-05-07 17:10:00 +0900 (Wed, 07 May 2014) New Revision: 45860 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45860 Log: numeric.c: merge miss * numeric.c (num_step_scan_args): fix merge miss. Modified files: trunk/numeric.c Index: numeric.c =================================================================== --- numeric.c (revision 45859) +++ numeric.c (revision 45860) @@ -1867,8 +1867,8 @@ num_step_scan_args(int argc, const VALUE https://github.com/ruby/ruby/blob/trunk/numeric.c#L1867 argc = rb_scan_args(argc, argv, "02:", to, step, &hash); if (!NIL_P(hash)) { - step = rb_hash_aref(hash, sym_by); - to = rb_hash_aref(hash, sym_to); + *step = rb_hash_aref(hash, sym_by); + *to = rb_hash_aref(hash, sym_to); } else { /* compatibility */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/