diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-13 03:48:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-13 03:48:17 +0000 |
commit | 9aa67e267b9c8d84e49464ea6f83e6f31c38efca (patch) | |
tree | 4426a07157cf827ff2c60e336a8dbef3d6d2c8ef /marshal.c | |
parent | db9d8759eee7d267612d19d0cee8af0e0c6b73c3 (diff) | |
download | ruby-9aa67e267b9c8d84e49464ea6f83e6f31c38efca.tar.gz |
* bignum.c (SIZEOF_BDIGIT): Renamed from SIZEOF_BDIGITS.
* internal.h: Ditto.
* marshal.c: Ditto.
* rational.c: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'marshal.c')
-rw-r--r-- | marshal.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -32,7 +32,7 @@ #define SHORTMASK ((1<<BITSPERSHORT)-1) #define SHORTDN(x) RSHIFT((x),BITSPERSHORT) -#if SIZEOF_SHORT == SIZEOF_BDIGITS +#if SIZEOF_SHORT == SIZEOF_BDIGIT #define SHORTLEN(x) (x) #else static long @@ -46,7 +46,7 @@ shortlen(long len, BDIGIT *ds) num = SHORTDN(num); offset++; } - return (len - 1)*SIZEOF_BDIGITS/2 + offset; + return (len - 1)*SIZEOF_BDIGIT/2 + offset; } #define SHORTLEN(x) shortlen((x),d) #endif @@ -780,11 +780,11 @@ w_object(VALUE obj, struct dump_arg *arg, int limit) w_byte(sign, arg); w_long(SHORTLEN(len), arg); /* w_short? */ while (len--) { -#if SIZEOF_BDIGITS > SIZEOF_SHORT +#if SIZEOF_BDIGIT > SIZEOF_SHORT BDIGIT num = *d; int i; - for (i=0; i<SIZEOF_BDIGITS; i+=SIZEOF_SHORT) { + for (i=0; i<SIZEOF_BDIGIT; i+=SIZEOF_SHORT) { w_short(num & SHORTMASK, arg); num = SHORTDN(num); if (len == 0 && num == 0) break; |