diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-07 08:10:00 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-07 08:10:00 +0000 |
commit | f8661f7ffb42bb831f62f06f43b6a0fc706c23a0 (patch) | |
tree | 1535e8018b3e82682f925e646a0ddf9e1d58918b /numeric.c | |
parent | ba90ac252937d3ac9e5e5a8c8f6f1f4c241301a3 (diff) | |
download | ruby-f8661f7ffb42bb831f62f06f43b6a0fc706c23a0.tar.gz |
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
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); 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 */ |