Skip to content

Commit 3d867f5

Browse files
committed
Merge pull request adafruit#479 from lurch/patch-1
Don't allow both ENDIANNESSes to be set
2 parents a7239b2 + cc83737 commit 3d867f5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

py/mpconfig.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ typedef double mp_float_t;
193193
// Just because most archs are such?
194194
#define MP_ENDIANNESS_LITTLE (1)
195195
#endif
196+
// Ensure we don't accidentally set both endiannesses
197+
#if MP_ENDIANNESS_BIG
198+
#define MP_ENDIANNESS_LITTLE (0)
199+
#endif
196200

197201
// printf format spec to use for machine_int_t and friends
198202
#ifndef INT_FMT

0 commit comments

Comments
 (0)