diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | bignum.c | 2 |
2 files changed, 7 insertions, 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 @@ -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)); } /* |