ruby-changes:30258
From: akr <ko1@a...>
Date: Thu, 1 Aug 2013 23:57:31 +0900 (JST)
Subject: [ruby-changes:30258] akr:r42310 (trunk): * bignum.c (rb_big2str1): Remove a local variable.
akr 2013-08-01 23:57:21 +0900 (Thu, 01 Aug 2013) New Revision: 42310 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42310 Log: * bignum.c (rb_big2str1): Remove a local variable. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42309) +++ ChangeLog (revision 42310) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Thu Aug 1 23:55:08 2013 Tanaka Akira <akr@f...> + + * bignum.c (rb_big2str1): Remove a local variable. + Thu Aug 1 23:33:01 2013 Tanaka Akira <akr@f...> * bignum.c (rb_cstr_to_inum): Use power_cache_get_power. Index: bignum.c =================================================================== --- bignum.c (revision 42309) +++ bignum.c (revision 42310) @@ -4352,7 +4352,6 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/bignum.c#L4352 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) https://github.com/ruby/ruby/blob/trunk/bignum.c#L4400 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/