mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
191be8057d
commit
99a105c82f
1 changed files with 1 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue