summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--bignum.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4075dbf911f..cab8d4350b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/bignum.c b/bignum.c
index b5636691c42..b028434b044 100644
--- a/bignum.c
+++ b/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));
}
/*