ruby-changes:1719
From: ko1@a...
Date: 22 Aug 2007 11:53:41 +0900
Subject: [ruby-changes:1719] shyouhei - Ruby:r13210 (ruby_1_8_6): * sprintf.c (rb_f_sprintf): should not check positional number as
shyouhei 2007-08-22 11:53:31 +0900 (Wed, 22 Aug 2007)
New Revision: 13210
Modified files:
branches/ruby_1_8_6/ChangeLog
branches/ruby_1_8_6/sprintf.c
branches/ruby_1_8_6/version.h
Log:
* sprintf.c (rb_f_sprintf): should not check positional number as
width. [ruby-core:11838]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=13210&r2=13209
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=13210&r2=13209
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/sprintf.c?r1=13210&r2=13209
Index: ruby_1_8_6/ChangeLog
===================================================================
--- ruby_1_8_6/ChangeLog (revision 13209)
+++ ruby_1_8_6/ChangeLog (revision 13210)
@@ -1,3 +1,8 @@
+Wed Aug 22 11:49:00 2007 Nobuyoshi Nakada <nobu@r...>
+
+ * sprintf.c (rb_f_sprintf): should not check positional number as
+ width. [ruby-core:11838]
+
Wed Aug 22 11:47:11 2007 Nobuyoshi Nakada <nobu@r...>
* bignum.c (rb_big_aref): check for Bignum index range.
Index: ruby_1_8_6/version.h
===================================================================
--- ruby_1_8_6/version.h (revision 13209)
+++ ruby_1_8_6/version.h (revision 13210)
@@ -2,7 +2,7 @@
#define RUBY_RELEASE_DATE "2007-08-22"
#define RUBY_VERSION_CODE 186
#define RUBY_RELEASE_CODE 20070822
-#define RUBY_PATCHLEVEL 81
+#define RUBY_PATCHLEVEL 82
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 8
Index: ruby_1_8_6/sprintf.c
===================================================================
--- ruby_1_8_6/sprintf.c (revision 13209)
+++ ruby_1_8_6/sprintf.c (revision 13210)
@@ -342,7 +342,6 @@
case '1': case '2': case '3': case '4':
case '5': case '6': case '7': case '8': case '9':
- CHECK_FOR_WIDTH(flags);
n = 0;
GETNUM(n, width);
if (*p == '$') {
@@ -353,6 +352,7 @@
p++;
goto retry;
}
+ CHECK_FOR_WIDTH(flags);
width = n;
flags |= FWIDTH;
goto retry;
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml