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 /sprintf.c | |
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
Diffstat (limited to 'sprintf.c')
-rw-r--r-- | sprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |