Mercurial > cpython-lru_cache-weakref
diff Modules/arraymodule.c @ 79803:d2127cdec10e
Issue #16166: Add PY_LITTLE_ENDIAN and PY_BIG_ENDIAN macros and unified
endianess detection and handling.
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Wed, 17 Oct 2012 23:52:17 +0200 |
| parents | 152d85b2da3a |
| children | bc322469a7a8 |
line wrap: on
line diff
--- a/Modules/arraymodule.c Wed Oct 17 17:33:26 2012 +0300 +++ b/Modules/arraymodule.c Wed Oct 17 23:52:17 2012 +0200 @@ -1664,11 +1664,8 @@ static enum machine_format_code typecode_to_mformat_code(char typecode) { -#ifdef WORDS_BIGENDIAN - const int is_big_endian = 1; -#else - const int is_big_endian = 0; -#endif + const int is_big_endian = PY_BIG_ENDIAN; + size_t intsize; int is_signed;
