public
Description: ruby lang (www.ruby-lang.org) svn mirror
Homepage: http://svn.ruby-lang.org/repos/ruby/
Clone URL: git://github.com/juretta/ruby.git
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@16424 
b2dd03c8-39d4-4d8f-98ff-823fe69b080e
matz (author)
Thu May 15 03:48:10 -0700 2008
commit  1f9f86b7f10db3d7fde9dd2599251481110095f0
tree    4a8c7c9d40e19575fc36dd8415ae2fb3f8b7a01e
parent  0e043e1eaa8eaf70a0e93171c81afa8b97e6879c
...
7
8
9
 
 
 
 
 
 
 
10
11
12
...
7
8
9
10
11
12
13
14
15
16
17
18
19
0
@@ -7,6 +7,13 @@ Thu May 15 15:33:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
0
 
0
   * file.c (rb_file_s_extname): ditto.
0
 
0
+Thu May 15 13:43:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
0
+
0
+ * object.c (rb_cstr_to_dbl): no need for forceful warning when
0
+ converting to float. overflow is a nature of float values.
0
+
0
+ * parse.y (parser_yylex): ditto.
0
+
0
 Thu May 15 13:23:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
0
 
0
   * re.c (rb_reg_prepare_enc): error condition was updated for non
...
2048
2049
2050
2051
 
2052
2053
2054
...
2086
2087
2088
2089
 
2090
2091
2092
...
2048
2049
2050
 
2051
2052
2053
2054
...
2086
2087
2088
 
2089
2090
2091
2092
0
@@ -2048,7 +2048,7 @@ rb_cstr_to_dbl(const char *p, int badcheck)
0
     d = strtod(p, &end);
0
     if (errno == ERANGE) {
0
   OutOfRange();
0
- rb_warn("Float %.*s%s out of range", w, p, ellipsis);
0
+ rb_warning("Float %.*s%s out of range", w, p, ellipsis);
0
   errno = 0;
0
     }
0
     if (p == end) {
0
@@ -2086,7 +2086,7 @@ rb_cstr_to_dbl(const char *p, int badcheck)
0
   d = strtod(p, &end);
0
   if (errno == ERANGE) {
0
    OutOfRange();
0
- rb_warn("Float %.*s%s out of range", w, p, ellipsis);
0
+ rb_warning("Float %.*s%s out of range", w, p, ellipsis);
0
    errno = 0;
0
   }
0
   if (badcheck) {
...
6777
6778
6779
6780
 
6781
6782
6783
...
6777
6778
6779
 
6780
6781
6782
6783
0
@@ -6777,7 +6777,7 @@ parser_yylex(struct parser_params *parser)
0
    if (is_float) {
0
     double d = strtod(tok(), 0);
0
     if (errno == ERANGE) {
0
- rb_warnS("Float %s out of range", tok());
0
+ rb_warningS("Float %s out of range", tok());
0
      errno = 0;
0
     }
0
                 set_yylval_literal(DOUBLE2NUM(d));

Comments

    No one has commented yet.