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:
parent
c15e0070ce
commit
5b89a56b4f
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
2
bignum.c
2
bignum.c
|
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue