From b134b912780e0fd84fbc107a9362e45f04391b47 Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 25 Apr 2002 13:57:01 +0000 Subject: * various files: macro fix-up by Michal Rokos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index 01dadb8471..3d97c52181 100644 --- a/numeric.c +++ b/numeric.c @@ -805,12 +805,12 @@ num_step(argc, argv, from) long i = 0; if (unit > 0) { - for (i=0; n<=end; i++, n=unit*i+beg) { + for (i=0; n<=end; i++, n=beg+unit*i) { rb_yield(rb_float_new(n)); } } else { - for (i=0; n>=end; i++, n=unit*i+beg) { + for (i=0; n>=end; i++, n=beg+unit*i) { rb_yield(rb_float_new(n)); } } -- cgit v1.2.3