mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
0f33529f63
commit
538e8190bc
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Fri Jul 11 16:09:09 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* util.c (ruby_strtod): exp should be less than MDMAXEXPT.
|
||||||
|
|
||||||
Thu Jul 10 14:42:02 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
Thu Jul 10 14:42:02 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||||
|
|
||||||
* math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0.
|
* math.c (math_log): nan takes a dummy argument on Cygwin 1.5.0.
|
||||||
|
|
2
util.c
2
util.c
|
@ -859,7 +859,7 @@ ruby_strtod(string, endPtr)
|
||||||
* fraction.
|
* fraction.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (exp > MDMAXEXPT - 18) {
|
if (exp >= MDMAXEXPT - 18) {
|
||||||
exp = MDMAXEXPT;
|
exp = MDMAXEXPT;
|
||||||
errno = ERANGE;
|
errno = ERANGE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue