Skip to content

Commit 9f697ed

Browse files
committed
Excuse float comparisons in this file
1 parent 85525c7 commit 9f697ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

py/formatfloat.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ static inline int fp_isless1(float x) {
8080

8181
#elif MICROPY_FLOAT_IMPL == MICROPY_FLOAT_IMPL_DOUBLE
8282

83+
#pragma GCC diagnostic ignored "-Wfloat-equal"
8384
#define FPTYPE double
8485
#define FPCONST(x) x
8586
#define FPROUND_TO_ONE 0.999999999995

0 commit comments

Comments
 (0)