summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-07 08:10:00 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-07 08:10:00 +0000
commitf8661f7ffb42bb831f62f06f43b6a0fc706c23a0 (patch)
tree1535e8018b3e82682f925e646a0ddf9e1d58918b /numeric.c
parentba90ac252937d3ac9e5e5a8c8f6f1f4c241301a3 (diff)
downloadruby-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/numeric.c b/numeric.c
index 49d27b82a8..dfa7052467 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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 */