Skip to content

Commit a2eab05

Browse files
committed
merge revision(s) 14095:
* bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezing preceeding 0s. [ruby-core:13873] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@16974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 0b9586c commit a2eab05

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Sun Jun 8 05:02:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezing
4+
preceeding 0s. [ruby-core:13873]
5+
16
Sun Jun 8 04:58:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
27

38
* eval.c (error_print): put newline unless multiple line message ends

bignum.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ rb_cstr_to_inum(str, base, badcheck)
446446
}
447447
if (*str == '0') { /* squeeze preceeding 0s */
448448
while (*++str == '0');
449-
if (!*str) --str;
449+
if (!(c = *str) || ISSPACE(c)) --str;
450450
}
451451
c = *str;
452452
c = conv_digit(c);

version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define RUBY_RELEASE_DATE "2008-06-08"
33
#define RUBY_VERSION_CODE 186
44
#define RUBY_RELEASE_CODE 20080608
5-
#define RUBY_PATCHLEVEL 155
5+
#define RUBY_PATCHLEVEL 156
66

77
#define RUBY_VERSION_MAJOR 1
88
#define RUBY_VERSION_MINOR 8

0 commit comments

Comments
 (0)