mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
f8926b2efe
commit
7aaa770b08
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue