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

* bignum.c (dump_bignum): Use SIZEOF_BDIGITS.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-06-20 13:27:15 +00:00
parent 91894ab995
commit ca10999c39
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Thu Jun 20 22:24:41 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (dump_bignum): Use SIZEOF_BDIGITS.
Thu Jun 20 22:22:46 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (big2ulong): Change the return type to unsigned long.

View file

@ -87,7 +87,7 @@ dump_bignum(VALUE x)
long i;
printf("%c0x0", RBIGNUM_SIGN(x) ? '+' : '-');
for (i = RBIGNUM_LEN(x); i--; ) {
printf("_%08"PRIxBDIGIT, BDIGITS(x)[i]);
printf("_%0*"PRIxBDIGIT, SIZEOF_BDIGITS*2, BDIGITS(x)[i]);
}
printf(", len=%lu", RBIGNUM_LEN(x));
puts("");