summaryrefslogtreecommitdiffstats
path: root/util.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-18 01:40:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-04-18 01:40:38 +0000
commitd2540ac9380aabb6dd7112a4b6e3b0e5f95e3706 (patch)
tree650ddb206d71b50b5fcd82c70c2cf2c8a365b3f0 /util.c
parentf802f9a15d73de8a83afe5f5b0312a366a3b0991 (diff)
downloadruby-d2540ac9380aabb6dd7112a4b6e3b0e5f95e3706.tar.gz
ruby-d2540ac9380aabb6dd7112a4b6e3b0e5f95e3706.tar.xz
ruby-d2540ac9380aabb6dd7112a4b6e3b0e5f95e3706.zip
* util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 9000a374b..e9e53ed4b 100644
--- a/util.c
+++ b/util.c
@@ -664,8 +664,8 @@ ruby_getcwd(void)
*
*/
-#define MDMINEXPT DBL_MIN_EXP
-#define MDMAXEXPT DBL_MAX_EXP
+#define MDMINEXPT DBL_MIN_10_EXP
+#define MDMAXEXPT DBL_MAX_10_EXP
static const double powersOf10[] = { /* Table giving binary powers of 10. Entry */
10.0, /* is 10^2^i. Used to convert decimal */