summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--bignum.c8
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1ce4169be3..8599ae2667 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Sat Aug 3 01:40:33 2013 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (big2str_orig): Rename a local variable.
+
Sat Aug 3 01:20:19 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (bigadd_core): Removed.
diff --git a/bignum.c b/bignum.c
index c31f480ed9..2c650481fd 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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;