summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-15 10:48:10 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-15 10:48:10 +0000
commit1d53405b313631315b38a0c524cf9ff02589bfb1 (patch)
tree4a8c7c9d40e19575fc36dd8415ae2fb3f8b7a01e /parse.y
parent880a96c795d30d95497cb216c8bfc7fa1b3b5387 (diff)
* 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
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index f98d0c3700..ae66688f0e 100644
--- a/parse.y
+++ b/parse.y
@@ -6777,7 +6777,7 @@ parser_yylex(struct parser_params *parser)
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));