diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-02 16:42:40 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-02 16:42:40 +0000 |
commit | 81f42c757676dd1e7866d39f42257873f8b14f21 (patch) | |
tree | 192cf44389c7032a65cfa50913e4d25a6a691825 /bignum.c | |
parent | d0741fdf1c8ea69234cde2ac3c365c6f72dcc820 (diff) | |
download | ruby-81f42c757676dd1e7866d39f42257873f8b14f21.tar.gz |
* bignum.c (big2str_orig): Rename a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4255,7 +4255,7 @@ big2str_orig(struct big2str_struct *b2s, VALUE x, size_t taillen) BDIGIT* ds = BDIGITS(x); BDIGIT_DBL num; char buf[SIZEOF_BDIGIT_DBL*CHAR_BIT], *p; - int trim = !b2s->ptr; + int beginning = !b2s->ptr; size_t len = 0; assert(i <= 2); @@ -4266,7 +4266,7 @@ big2str_orig(struct big2str_struct *b2s, VALUE x, size_t taillen) if (1 < i) num |= BIGUP(ds[1]); - if (trim) { + if (beginning) { if (num == 0) return; p = buf; @@ -4283,9 +4283,9 @@ big2str_orig(struct big2str_struct *b2s, VALUE x, size_t taillen) p[--j] = ruby_digitmap[num % b2s->base]; num /= b2s->base; if (j <= 0) break; - if (trim && num == 0) break; + if (beginning && num == 0) break; } - if (trim) { + if (beginning) { while (j < sizeof(buf) && buf[j] == '0') j++; len = sizeof(buf) - j; |