From 0a5ac6a44809ec32ae6e836086708a64112bcfd0 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 5 Oct 2011 07:36:28 +0000 Subject: [PATCH] Revert r33407; half-baked patch. "* numeric.c (ruby_float_step): improve floating point calculations." git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 13 ------------- numeric.c | 23 ++++------------------- test/ruby/test_float.rb | 31 ------------------------------- 3 files changed, 4 insertions(+), 63 deletions(-) diff --git a/ChangeLog b/ChangeLog index dfee2eacd7..1ee37b3047 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,19 +2,6 @@ Wed Oct 5 16:33:04 2011 NARUSE, Yui * vm_insnhelper.c (vm_call_cfunc): remove useless hack. -Wed Sep 21 11:17:22 2011 NARUSE, Yui - - * numeric.c (ruby_float_step): improve floating point calculations. - [ruby-core:35753] [Bug #4576] - - * numeric.c (ruby_float_step): correct the error of floating point - numbers on the excluding case. - patched by Masahiro Tanaka [ruby-core:39608] - - * numeric.c (ruby_float_step): use the end value when the current - value is greater than or equal to the end value. - patched by Akira Tanaka [ruby-core:39612] - Wed Oct 5 05:56:39 2011 Eric Hodel * hash.c (Init_Hash): Improve Hash documentation. Patch by Alvaro diff --git a/numeric.c b/numeric.c index 166dc520de..6d3c1432e8 100644 --- a/numeric.c +++ b/numeric.c @@ -1690,25 +1690,10 @@ ruby_float_step(VALUE from, VALUE to, VALUE step, int excl) } else { if (err>0.5) err=0.5; - if (excl) { - if (n>0) { - if (n