mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* object.c (rb_cstr_to_dbl): "9_e8" should consider "_e8" as
trailing garbage so that it should return 9.0. [ruby-dev:29088] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
252d273832
commit
7265bd401d
2 changed files with 8 additions and 3 deletions
|
@ -3,6 +3,11 @@ Fri Jul 21 21:21:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
* eval.c (rb_call0): include funcalled methods in caller list.
|
* eval.c (rb_call0): include funcalled methods in caller list.
|
||||||
fixed: [ruby-core:08290]
|
fixed: [ruby-core:08290]
|
||||||
|
|
||||||
|
Fri Jul 21 17:52:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* object.c (rb_cstr_to_dbl): "9_e8" should consider "_e8" as
|
||||||
|
trailing garbage so that it should return 9.0. [ruby-dev:29088]
|
||||||
|
|
||||||
Fri Jul 21 12:11:00 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Jul 21 12:11:00 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
|
* ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
|
||||||
|
|
6
object.c
6
object.c
|
@ -2071,10 +2071,10 @@ rb_cstr_to_dbl(const char *p, int badcheck)
|
||||||
/* remove underscores between digits */
|
/* remove underscores between digits */
|
||||||
if (n == buf || !ISDIGIT(n[-1])) goto bad;
|
if (n == buf || !ISDIGIT(n[-1])) goto bad;
|
||||||
while (*++p == '_');
|
while (*++p == '_');
|
||||||
if (badcheck) {
|
if (!ISDIGIT(*p)) {
|
||||||
if (!ISDIGIT(*p)) goto bad;
|
if (badcheck) goto bad;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
*n++ = *p++;
|
*n++ = *p++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue