sprintf.c: remove unused variable

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-04-28 11:42:58 +00:00
parent 191be8057d
commit 99a105c82f
1 changed files with 1 additions and 2 deletions

View File

@ -1126,7 +1126,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
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 *argv, VALUE fmt)
}
need = (int)strlen(expr);
elen = need;
i = 0;
if (!isnan(fval) && fval < 0.0)
sign = '-';
else if (flags & (FPLUS|FSPACE))