We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce63b1 commit ca80aabCopy full SHA for ca80aab
py/objfloat.c
@@ -34,6 +34,11 @@
34
35
#if MICROPY_PY_BUILTINS_FLOAT
36
37
+// Workaround a bug in Windows SDK version 10.0.26100.0, where NAN is no longer constant.
38
+#if defined(_MSC_VER) && !defined(_UCRT_NOISY_NAN)
39
+#define _UCRT_NOISY_NAN
40
+#endif
41
+
42
#include <math.h>
43
#include "py/formatfloat.h"
44
@@ -47,13 +52,6 @@
47
52
#define M_PI (3.14159265358979323846)
48
53
#endif
49
54
50
-// Workaround a bug in recent MSVC where NAN is no longer constant.
51
-// (By redefining back to the previous MSVC definition of NAN)
-#if defined(_MSC_VER) && _MSC_VER >= 1942
-#undef NAN
-#define NAN (-(float)(((float)(1e+300 * 1e+300)) * 0.0F))
55
-#endif
56
-
57
typedef struct _mp_obj_float_t {
58
mp_obj_base_t base;
59
mp_float_t value;
0 commit comments