summaryrefslogtreecommitdiff
path: root/py/objcomplex.c
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2016-11-21 14:30:57 -0800
committerGitHub <noreply@github.com>2016-11-21 14:30:57 -0800
commit3b1109c47bf645109294f7a79dcbfed8cd4c780f (patch)
tree743fef26c6176aca6582b92a85829a565e60c414 /py/objcomplex.c
parentceeac4791e84607a3f1211310d5f4070205db478 (diff)
parentccbb5e84f980e252f7380d96fcc5c417a8a64523 (diff)
Merge pull request #50 from tannewt/microcontroller
Introduce shared APIs: nativeio, microcontroller and board modules. These are the only hardware API on the atmel-samd port.
Diffstat (limited to 'py/objcomplex.c')
-rw-r--r--py/objcomplex.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/py/objcomplex.c b/py/objcomplex.c
index 96be25255..b302b1d56 100644
--- a/py/objcomplex.c
+++ b/py/objcomplex.c
@@ -39,6 +39,9 @@
#include <math.h>
#include "py/formatfloat.h"
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wfloat-equal"
+
typedef struct _mp_obj_complex_t {
mp_obj_base_t base;
mp_float_t real;
@@ -248,4 +251,6 @@ mp_obj_t mp_obj_complex_binary_op(mp_uint_t op, mp_float_t lhs_real, mp_float_t
return mp_obj_new_complex(lhs_real, lhs_imag);
}
+#pragma GCC diagnostic pop
+
#endif