ruby-changes:46387
From: nobu <ko1@a...>
Date: Fri, 28 Apr 2017 20:43:04 +0900 (JST)
Subject: [ruby-changes:46387] nobu:r58501 (trunk): sprintf.c: remove unused variable
nobu 2017-04-28 20:42:58 +0900 (Fri, 28 Apr 2017) New Revision: 58501 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58501 Log: sprintf.c: remove unused variable Modified files: trunk/sprintf.c Index: sprintf.c =================================================================== --- sprintf.c (revision 58500) +++ sprintf.c (revision 58501) @@ -1126,7 +1126,7 @@ rb_str_format(int argc, const VALUE *arg https://github.com/ruby/ruby/blob/trunk/sprintf.c#L1126 fval = RFLOAT_VALUE(rb_Float(val)); if (isnan(fval) || isinf(fval)) { const char *expr; - int i, need; + int need; int elen; char sign = '\0'; @@ -1138,7 +1138,6 @@ rb_str_format(int argc, const VALUE *arg https://github.com/ruby/ruby/blob/trunk/sprintf.c#L1138 } need = (int)strlen(expr); elen = need; - i = 0; if (!isnan(fval) && fval < 0.0) sign = '-'; else if (flags & (FPLUS|FSPACE)) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/