summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-11 07:10:14 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-11 07:10:14 +0000
commit538e8190bc68afcfd2f8308cb0e4c92394e93935 (patch)
treefdce36c6e641aae80738b5e5fd5995c5c48cfff6 /util.c
parent0f33529f639d112dff43137c0d9c618a583d4244 (diff)
* util.c (ruby_strtod): exp should be less than MDMAXEXPT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index ae2bc8d..9b058e6 100644
--- a/util.c
+++ b/util.c
@@ -859,7 +859,7 @@ ruby_strtod(string, endPtr)
* fraction.
*/
- if (exp > MDMAXEXPT - 18) {
+ if (exp >= MDMAXEXPT - 18) {
exp = MDMAXEXPT;
errno = ERANGE;
}