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

* bignum.c (rb_big_size): Return the bignum "bytewise" size.

[ruby-core:55578] [Feature #8553]
  This is accepted by matz on DevelopersMeeting20130727Japan.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-07-27 15:39:01 +00:00
parent c15e0070ce
commit 5b89a56b4f
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Sun Jul 28 00:35:14 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (rb_big_size): Return the bignum "bytewise" size.
[ruby-core:55578] [Feature #8553]
This is accepted by matz on DevelopersMeeting20130727Japan.
Sun Jul 28 00:07:48 2013 Tanaka Akira <akr@fsij.org>
* include/ruby/intern.h (rb_integer_pack): Declaration moved from

View file

@ -6284,7 +6284,7 @@ rb_big_abs(VALUE x)
static VALUE
rb_big_size(VALUE big)
{
return LONG2FIX(RBIGNUM_LEN(big)*SIZEOF_BDIGITS);
return SIZET2NUM(BIGSIZE(big));
}
/*