diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-02 04:46:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-08-02 04:46:41 +0000 |
commit | 1a606a89a7a7c9c03af6dd7980168180df608aac (patch) | |
tree | c5ba47be95e97b00fd93df032f2aca606ceccf54 | |
parent | 0a88a13f333b6618206682ee221741528e5ffbef (diff) |
* sprintf.c (rb_f_sprintf): should not check positional number as
width. [ruby-core:11838]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@12861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | sprintf.c | 2 | ||||
-rw-r--r-- | version.h | 8 |
3 files changed, 10 insertions, 5 deletions
@@ -1,3 +1,8 @@ +Thu Aug 2 13:46:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * sprintf.c (rb_f_sprintf): should not check positional number as + width. [ruby-core:11838] + Mon Jul 30 11:16:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * bignum.c (rb_big_aref): check for Bignum index range. @@ -342,7 +342,6 @@ rb_f_sprintf(argc, argv) 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 @@ rb_f_sprintf(argc, argv) p++; goto retry; } + CHECK_FOR_WIDTH(flags); width = n; flags |= FWIDTH; goto retry; @@ -1,15 +1,15 @@ #define RUBY_VERSION "1.8.6" -#define RUBY_RELEASE_DATE "2007-07-30" +#define RUBY_RELEASE_DATE "2007-08-02" #define RUBY_VERSION_CODE 186 -#define RUBY_RELEASE_CODE 20070730 +#define RUBY_RELEASE_CODE 20070802 #define RUBY_PATCHLEVEL 5000 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 #define RUBY_VERSION_TEENY 6 #define RUBY_RELEASE_YEAR 2007 -#define RUBY_RELEASE_MONTH 7 -#define RUBY_RELEASE_DAY 30 +#define RUBY_RELEASE_MONTH 8 +#define RUBY_RELEASE_DAY 2 #ifdef RUBY_EXTERN RUBY_EXTERN const char ruby_version[]; |