comparison Modules/arraymodule.c @ 55276:fc8fb8eff20e

Use the proper autoconf macro for checking byte order. 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.
author Alexandre Vassalotti <alexandre@peadrop.com>
date Fri, 17 Jul 2009 03:51:27 +0000
parents a8922723a92d
children 7b603680bf29
comparison
equal deleted inserted replaced
55272:9b17d5469821 55276:fc8fb8eff20e
1524 * be found. 1524 * be found.
1525 */ 1525 */
1526 static enum machine_format_code 1526 static enum machine_format_code
1527 typecode_to_mformat_code(int typecode) 1527 typecode_to_mformat_code(int typecode)
1528 { 1528 {
1529 #ifdef BYTEORDER_IS_BIG_ENDIAN 1529 #ifdef WORDS_BIGENDIAN
1530 const int is_big_endian = 1; 1530 const int is_big_endian = 1;
1531 #else 1531 #else
1532 const int is_big_endian = 0; 1532 const int is_big_endian = 0;
1533 #endif 1533 #endif
1534 size_t intsize; 1534 size_t intsize;