Mercurial > cpython-lru_cache-weakref
diff 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 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Thu Jul 16 16:18:19 2009 +0000 +++ b/Modules/arraymodule.c Fri Jul 17 03:51:27 2009 +0000 @@ -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;
