Kaydet (Commit) 7aaa770b authored tarafından Alexandre Vassalotti's avatar Alexandre Vassalotti

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.
üst f8926b2e
...@@ -1526,7 +1526,7 @@ static const struct mformatdescr { ...@@ -1526,7 +1526,7 @@ static const struct mformatdescr {
static enum machine_format_code static enum machine_format_code
typecode_to_mformat_code(int typecode) typecode_to_mformat_code(int typecode)
{ {
#ifdef BYTEORDER_IS_BIG_ENDIAN #ifdef WORDS_BIGENDIAN
const int is_big_endian = 1; const int is_big_endian = 1;
#else #else
const int is_big_endian = 0; const int is_big_endian = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment