Skip to content

Commit ba595fe

Browse files
committed
merges r24205 from trunk into ruby_1_9_1.
-- * complex.c (make_patterns): do not use \d. * rational.c (make_patterns): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@27981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 3ae8d8a commit ba595fe

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Sun Jul 19 20:41:24 2009 Tadayoshi Funaba <tadf@dotrb.org>
2+
3+
* complex.c (make_patterns): do not use \d.
4+
5+
* rational.c (make_patterns): ditto.
6+
17
Fri Apr 30 03:38:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
28

39
* numeric.c (fix_mul): the width of fixnum is same as long's on all

complex.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ static VALUE comp_pat0, comp_pat1, comp_pat2, a_slash, a_dot_and_an_e,
10541054
null_string, underscores_pat, an_underscore;
10551055

10561056
#define WS "\\s*"
1057-
#define DIGITS "(?:\\d(?:_\\d|\\d)*)"
1057+
#define DIGITS "(?:[0-9](?:_[0-9]|[0-9])*)"
10581058
#define NUMERATOR "(?:" DIGITS "?\\.)?" DIGITS "(?:[eE][-+]?" DIGITS ")?"
10591059
#define DENOMINATOR DIGITS
10601060
#define NUMBER "[-+]?" NUMERATOR "(?:\\/" DENOMINATOR ")?"

rational.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ float_to_r(VALUE self)
13131313
static VALUE rat_pat, an_e_pat, a_dot_pat, underscores_pat, an_underscore;
13141314

13151315
#define WS "\\s*"
1316-
#define DIGITS "(?:\\d(?:_\\d|\\d)*)"
1316+
#define DIGITS "(?:[0-9](?:_[0-9]|[0-9])*)"
13171317
#define NUMERATOR "(?:" DIGITS "?\\.)?" DIGITS "(?:[eE][-+]?" DIGITS ")?"
13181318
#define DENOMINATOR DIGITS
13191319
#define PATTERN "\\A" WS "([-+])?(" NUMERATOR ")(?:\\/(" DENOMINATOR "))?" WS

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#define RUBY_VERSION "1.9.1"
2-
#define RUBY_PATCHLEVEL 425
2+
#define RUBY_PATCHLEVEL 426
33
#define RUBY_VERSION_MAJOR 1
44
#define RUBY_VERSION_MINOR 9
55
#define RUBY_VERSION_TEENY 1

0 commit comments

Comments
 (0)