aboutsummaryrefslogtreecommitdiffstats
path: root/pack.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-06 00:54:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-06 00:54:23 +0000
commitc3fcd1b871596e31d5f5c5f4274db8e637d2cd96 (patch)
tree19bfbb6b979f53c1e5cddc0489341c9dea7131cd /pack.c
parent37872dbf2b040d6cc22c962f3e30bad3e14460cb (diff)
downloadruby-c3fcd1b871596e31d5f5c5f4274db8e637d2cd96.tar.gz
pack.c: fix definition order
* pack.c (NATINT_LEN): fix definition order, must be after NATINT_PACK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'pack.c')
-rw-r--r--pack.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/pack.c b/pack.c
index aca562eef1..7a12cfcf24 100644
--- a/pack.c
+++ b/pack.c
@@ -36,12 +36,6 @@ static const char natstr[] = "sSiIlL";
#endif
static const char endstr[] = "sSiIlLqQ";
-#ifdef NATINT_PACK
-# define NATINT_LEN(type,len) (natint?(int)sizeof(type):(int)(len))
-#else
-# define NATINT_LEN(type,len) ((int)sizeof(type))
-#endif
-
#ifdef HAVE_TRUE_LONG_LONG
/* It is intentional to use long long instead of LONG_LONG. */
# define NATINT_LEN_Q NATINT_LEN(long long, 8)
@@ -75,6 +69,12 @@ static const char endstr[] = "sSiIlLqQ";
# define BIGENDIAN_P() 0
#endif
+#ifdef NATINT_PACK
+# define NATINT_LEN(type,len) (natint?(int)sizeof(type):(int)(len))
+#else
+# define NATINT_LEN(type,len) ((int)sizeof(type))
+#endif
+
#if SIZEOF_LONG == 8
# define INT64toNUM(x) LONG2NUM(x)
# define UINT64toNUM(x) ULONG2NUM(x)