summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-01 14:57:21 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-01 14:57:21 +0000
commit9ebd675c478a84ca1a7187eb2992e47ddd7a9e0d (patch)
tree7c743e3e8f1ba4b41a5a2dd15d9c201c4347c7ec
parent69263bb7557de514f67bc5a8d27b91b4b781138a (diff)
* bignum.c (rb_big2str1): Remove a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--bignum.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 40a89b8..22907dd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 1 23:55:08 2013 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (rb_big2str1): Remove a local variable.
+
Thu Aug 1 23:33:01 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (rb_cstr_to_inum): Use power_cache_get_power.
diff --git a/bignum.c b/bignum.c
index 1f37209..c32a695 100644
--- a/bignum.c
+++ b/bignum.c
@@ -4352,7 +4352,6 @@ static VALUE
rb_big2str1(VALUE x, int base)
{
VALUE xx;
- size_t len;
struct big2str_struct b2s_data;
int power_level;
VALUE power;
@@ -4401,15 +4400,14 @@ rb_big2str1(VALUE x, int base)
b2s_data.result = Qnil;
b2s_data.ptr = NULL;
- len = 0;
xx = rb_big_clone(x);
RBIGNUM_SET_SIGN(xx, 1);
if (power_level < 0) {
- big2str_orig(&b2s_data, xx, len, 0);
+ big2str_orig(&b2s_data, xx, 0, 0);
}
else {
- big2str_karatsuba(&b2s_data, xx, power_level, len, 0);
+ big2str_karatsuba(&b2s_data, xx, power_level, 0, 0);
}
rb_big_resize(xx, 0);