diff options
author | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-17 03:51:27 (GMT) |
---|---|---|
committer | Alexandre Vassalotti <alexandre@peadrop.com> | 2009-07-17 03:51:27 (GMT) |
commit | 7aaa770b08e79960073e0e278fee61a5c159335d (patch) | |
tree | fd5b8bf6f10b1a977f06f6a7109536061e3fb123 /Modules | |
parent | f8926b2efeb1cd719736c42a14e2a92558c81aed (diff) | |
download | cpython-7aaa770b08e79960073e0e278fee61a5c159335d.zip cpython-7aaa770b08e79960073e0e278fee61a5c159335d.tar.gz cpython-7aaa770b08e79960073e0e278fee61a5c159335d.tar.bz2 |
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.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/arraymodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index 236c952..0ac3cab 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -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; |