From c3fcd1b871596e31d5f5c5f4274db8e637d2cd96 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 6 Apr 2013 00:54:23 +0000 Subject: 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 --- pack.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'pack.c') 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) -- cgit v1.2.3