aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */