diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-26 11:09:29 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-26 11:09:29 +0000 |
commit | 07298aba22284e3eadc7d250205f365e3ff20d37 (patch) | |
tree | c9508f5f421684b00b6697c1fe0f1122050447bc /bignum.c | |
parent | d191b742bd0c1c9145023768ffd6e6d93f2b6077 (diff) |
* pack.c (QUAD_SIZE): it should be always 8.
* bignum.c (rb_quad_pack): use LONG_LONG version only if
SIZEOF_LONG_LONG == QUAD_SIZE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -304,7 +304,9 @@ rb_int2inum(SIGNED_VALUE n) return rb_int2big(n); } -#if SIZEOF_BDIGITS*2 == SIZEOF_LONG_LONG +#define QUAD_SIZE 8 + +#if SIZEOF_LONG_LONG == QUAD_SIZE && SIZEOF_BDIGITS*2 == SIZEOF_LONG_LONG void rb_quad_pack(char *buf, VALUE val) @@ -374,8 +376,6 @@ rb_quad_unpack(const char *buf, int sign) #else -#define QUAD_SIZE 8 - void rb_quad_pack(char *buf, VALUE val) { |