ruby-changes:4931
From: ko1@a...
Date: Thu, 15 May 2008 19:48:30 +0900 (JST)
Subject: [ruby-changes:4931] matz - Ruby:r16424 (trunk): * object.c (rb_cstr_to_dbl): no need for forceful warning when
matz 2008-05-15 19:48:10 +0900 (Thu, 15 May 2008)
New Revision: 16424
Modified files:
trunk/ChangeLog
trunk/object.c
trunk/parse.y
Log:
* 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.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=16424&r2=16423&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16424&r2=16423&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/object.c?r1=16424&r2=16423&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16423)
+++ ChangeLog (revision 16424)
@@ -7,6 +7,13 @@
* file.c (rb_file_s_extname): ditto.
+Thu May 15 13:43:36 2008 Yukihiro Matsumoto <matz@r...>
+
+ * 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@r...>
* re.c (rb_reg_prepare_enc): error condition was updated for non
Index: object.c
===================================================================
--- object.c (revision 16423)
+++ object.c (revision 16424)
@@ -2048,7 +2048,7 @@
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 @@
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) {
Index: parse.y
===================================================================
--- parse.y (revision 16423)
+++ parse.y (revision 16424)
@@ -6777,7 +6777,7 @@
if (is_float) {
double d = strtod(tok(), 0);
if (errno == ERANGE) {
- rb_warnS("Float %s out of range", tok());
+ rb_warningS("Float %s out of range", tok());
errno = 0;
}
set_yylval_literal(DOUBLE2NUM(d));
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/