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 355ab24 commit 9f99261Copy full SHA for 9f99261
jerry-math/include/math.h
@@ -22,11 +22,11 @@ extern "C" {
22
23
/* General Constants. */
24
#ifdef _MSC_VER
25
-#define INFINITY ((float) (1e+300 * 1e+300)) /* 1e+300*1e+300 must overflow */
26
-#define NAN ((float) (INFINITY * 0.0f))
+#define INFINITY ((double) (1e+300 * 1e+300)) /* 1e+300*1e+300 must overflow */
+#define NAN ((double) (INFINITY * 0.0f))
27
#else /* !_MSC_VER */
28
-#define INFINITY ((float) (1.0 / 0.0))
29
-#define NAN ((float) (0.0 / 0.0))
+#define INFINITY ((double) (1.0 / 0.0))
+#define NAN ((double) (0.0 / 0.0))
30
#endif /* _MSC_VER */
31
#define HUGE_VAL ((double) INFINITY)
32
0 commit comments