aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authorduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-18 01:35:03 +0000
committerduerst <duerst@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-03-18 01:35:03 +0000
commit368d8242318c925e18bc2e5a06b97e3c61e88fb0 (patch)
tree65d766deb7b8f1b9a61505f6518524f09751a48b /string.c
parentf496572ab0b296179e7b470bcbafecd3495a3dce (diff)
downloadruby-368d8242318c925e18bc2e5a06b97e3c61e88fb0.tar.gz
fix accidental reversal of r57997 in r58000
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58009 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r--string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/string.c b/string.c
index 120b172d8b..8144b61fa5 100644
--- a/string.c
+++ b/string.c
@@ -4147,7 +4147,7 @@ str_upto_each(VALUE beg, VALUE end, int excl, int (*each)(VALUE, VALUE), VALUE a
}
else {
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);
while (rb_funcall(b, op, 1, e)) {