1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
akr 2013-08-01 14:57:21 +00:00
parent 69263bb755
commit 9ebd675c47
2 changed files with 6 additions and 4 deletions

View file

@ -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.

View file

@ -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);