Commit cc83737d authored by Andrew Scheller's avatar Andrew Scheller
Browse files

Don't allow both ENDIANNESSes to be set

See discussion on https://github.com/micropython/micropython/commit/2da81fa80c4cd965f05ad237d81d9764322fde20

Explicitly set `MP_ENDIANNESS_LITTLE` because that's the #define that is used in code elsewhere.
parent bbae42d6
......@@ -187,6 +187,10 @@ typedef double mp_float_t;
// Just because most archs are such?
#define MP_ENDIANNESS_LITTLE (1)
#endif
// Ensure we don't accidentally set both endiannesses
#if MP_ENDIANNESS_BIG
#define MP_ENDIANNESS_LITTLE (0)
#endif
// printf format spec to use for machine_int_t and friends
#ifndef INT_FMT
......
Supports Markdown
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