summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bignum.c b/bignum.c
index 175b66395f..727122849e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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)
{