summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-21 10:35:14 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-06-21 10:35:14 +0000
commit1002dfb5131c5ebe352df7540481f61fd1105d28 (patch)
tree849c33d602776920662e63a0dc201a82a2cddf7a
parentfb2636685851909250b9886d42c598a54f1ad29d (diff)
downloadruby-1002dfb5131c5ebe352df7540481f61fd1105d28.tar.gz
ruby-1002dfb5131c5ebe352df7540481f61fd1105d28.tar.xz
ruby-1002dfb5131c5ebe352df7540481f61fd1105d28.zip
merges r23737 from trunk into ruby_1_9_1.
-- * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): went infinity too early. add BASE_FIG margin. [ruby-dev:38673] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/bigdecimal/bigdecimal.c2
-rw-r--r--version.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 061ec088e..776c0ae49 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -605,7 +605,7 @@ BigDecimal_to_f(VALUE self)
GUARD_OBJ(p,GetVpValue(self,1));
if (VpVtoD(&d, &e, p)!=1) return rb_float_new(d);
- if (e > DBL_MAX_10_EXP) goto erange;
+ if (e > DBL_MAX_10_EXP+BASE_FIG) goto erange;
str = rb_str_new(0, VpNumOfChars(p,"E"));
buf = RSTRING_PTR(str);
VpToString(p, buf, 0, 0);
diff --git a/version.h b/version.h
index 69fdf8fde..f233c5025 100644
--- a/version.h
+++ b/version.h
@@ -1,6 +1,6 @@
#define RUBY_VERSION "1.9.1"
#define RUBY_RELEASE_DATE "2009-05-22"
-#define RUBY_PATCHLEVEL 190
+#define RUBY_PATCHLEVEL 191
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1