Skip to content

Commit d81b486

Browse files
committed
+1
1 parent cffad22 commit d81b486

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Objects/floatobject.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,11 @@ PyFloat_GetInfo(void)
115115
SetDblFlag(DBL_EPSILON);
116116
SetIntFlag(FLT_RADIX);
117117
SetIntFlag(FLT_ROUNDS);
118-
SetFlag(PyBool_FromLong(__STDC_IEC_559__));
118+
#ifdef __STDC_IEC_559__
119+
SetFlag(PyBool_FromLong(1));
120+
#else
121+
SetFlag(PyBool_FromLong(0));
122+
#endif
119123
#undef SetIntFlag
120124
#undef SetDblFlag
121125
#undef SetFlag

0 commit comments

Comments
 (0)