[前][次][番号順一覧][スレッド一覧]

ruby-changes:45938

From: duerst <ko1@a...>
Date: Sat, 18 Mar 2017 10:35:09 +0900 (JST)
Subject: [ruby-changes:45938] duerst:r58009 (trunk): fix accidental reversal of r57997 in r58000

duerst	2017-03-18 10:35:03 +0900 (Sat, 18 Mar 2017)

  New Revision: 58009

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58009

  Log:
    fix accidental reversal of r57997 in r58000

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 58008)
+++ string.c	(revision 58009)
@@ -4147,7 +4147,7 @@ str_upto_each(VALUE beg, VALUE end, int https://github.com/ruby/ruby/blob/trunk/string.c#L4147
 	}
 	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)) {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]