* object.c (rb_cstr_to_dbl): no need for forceful warning when
converting to float. overflow is a nature of float values. * parse.y (parser_yylex): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
880a96c795
commit
1d53405b31
@ -7,6 +7,13 @@ Thu May 15 15:33:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* file.c (rb_file_s_extname): ditto.
|
||||
|
||||
Thu May 15 13:43:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* object.c (rb_cstr_to_dbl): no need for forceful warning when
|
||||
converting to float. overflow is a nature of float values.
|
||||
|
||||
* parse.y (parser_yylex): ditto.
|
||||
|
||||
Thu May 15 13:23:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* re.c (rb_reg_prepare_enc): error condition was updated for non
|
||||
|
4
object.c
4
object.c
@ -2048,7 +2048,7 @@ rb_cstr_to_dbl(const char *p, int badcheck)
|
||||
d = strtod(p, &end);
|
||||
if (errno == ERANGE) {
|
||||
OutOfRange();
|
||||
rb_warn("Float %.*s%s out of range", w, p, ellipsis);
|
||||
rb_warning("Float %.*s%s out of range", w, p, ellipsis);
|
||||
errno = 0;
|
||||
}
|
||||
if (p == end) {
|
||||
@ -2086,7 +2086,7 @@ rb_cstr_to_dbl(const char *p, int badcheck)
|
||||
d = strtod(p, &end);
|
||||
if (errno == ERANGE) {
|
||||
OutOfRange();
|
||||
rb_warn("Float %.*s%s out of range", w, p, ellipsis);
|
||||
rb_warning("Float %.*s%s out of range", w, p, ellipsis);
|
||||
errno = 0;
|
||||
}
|
||||
if (badcheck) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user