[Python-checkins] r74030 - python/branches/py3k/Modules/arraymodule.c

alexandre.vassalotti python-checkins at python.org
Fri Jul 17 05:51:27 CEST 2009


Author: alexandre.vassalotti
Date: Fri Jul 17 05:51:27 2009
New Revision: 74030

Log:
Use the proper autoconf macro for checking byte order.

The BYTEORDER_IS_BIG_ENDIAN macro is defined Objects/unicodeobject.c,
thus the code always emitting the little-endian machine format codes.

This should fix the failure seen on the SPARC buildbot.



Modified:
   python/branches/py3k/Modules/arraymodule.c

Modified: python/branches/py3k/Modules/arraymodule.c
==============================================================================
--- python/branches/py3k/Modules/arraymodule.c	(original)
+++ python/branches/py3k/Modules/arraymodule.c	Fri Jul 17 05:51:27 2009
@@ -1526,7 +1526,7 @@
 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;


More information about the Python-checkins mailing list