diff options
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 */ |