]> granicus.if.org Git - python/commitdiff
Use the proper autoconf macro for checking byte order.
authorAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 17 Jul 2009 03:51:27 +0000 (03:51 +0000)
committerAlexandre Vassalotti <alexandre@peadrop.com>
Fri, 17 Jul 2009 03:51:27 +0000 (03:51 +0000)
The BYTEORDER_IS_BIG_ENDIAN macro is defined Objects/unicodeobject.c,
thus the code was always emitting the little-endian machine format codes.

This should fix the failure seen on the SPARC buildbot.

Modules/arraymodule.c

index 236c9529f0cdeccc5efd7dde7aeaa47450a65364..0ac3cab126f3faa01b569194c4a571b335e043c2 100644 (file)
@@ -1526,7 +1526,7 @@ static const struct mformatdescr {
 static enum machine_format_code
 typecode_to_mformat_code(int typecode)
 {
-#ifdef BYTEORDER_IS_BIG_ENDIAN
+#ifdef WORDS_BIGENDIAN
        const int is_big_endian = 1;
 #else
        const int is_big_endian = 0;