numeric.c: merge miss
* numeric.c (num_step_scan_args): fix merge miss. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ba90ac2529
commit
f8661f7ffb
@ -1867,8 +1867,8 @@ num_step_scan_args(int argc, const VALUE *argv, VALUE *to, VALUE *step)
|
|||||||
|
|
||||||
argc = rb_scan_args(argc, argv, "02:", to, step, &hash);
|
argc = rb_scan_args(argc, argv, "02:", to, step, &hash);
|
||||||
if (!NIL_P(hash)) {
|
if (!NIL_P(hash)) {
|
||||||
step = rb_hash_aref(hash, sym_by);
|
*step = rb_hash_aref(hash, sym_by);
|
||||||
to = rb_hash_aref(hash, sym_to);
|
*to = rb_hash_aref(hash, sym_to);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* compatibility */
|
/* compatibility */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user