mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fix accidental reversal of r57997 in r58000
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fbaee79ec0
commit
a5330fa9ea
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -4147,7 +4147,7 @@ str_upto_each(VALUE beg, VALUE end, int excl, int (*each)(VALUE, VALUE), VALUE a
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
ID op = excl ? '<' : idLE;
|
ID op = excl ? '<' : idLE;
|
||||||
VALUE args[2], fmt = rb_obj_freeze(rb_usascii_str_new_cstr("%.*d"));
|
VALUE args[2], fmt = rb_fstring_cstr("%.*d");
|
||||||
|
|
||||||
args[0] = INT2FIX(width);
|
args[0] = INT2FIX(width);
|
||||||
while (rb_funcall(b, op, 1, e)) {
|
while (rb_funcall(b, op, 1, e)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue