Skip to content

Commit 4561257

Browse files
author
Andrew MacIntyre
committed
Merged revisions 66552-66553 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r66552 | andrew.macintyre | 2008-09-23 00:10:54 +1000 (Tue, 23 Sep 2008) | 5 lines should use macro'ed symbols not direct Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc ........ r66553 | andrew.macintyre | 2008-09-23 00:11:41 +1000 (Tue, 23 Sep 2008) | 5 lines any platform without HAVE_LOG1P should have DBL_EPSILON in <float.h> Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc ........
1 parent a74e4bf commit 4561257

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Objects/floatobject.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,12 +1248,12 @@ float_fromhex(PyObject *cls, PyObject *arg)
12481248
s++;
12491249

12501250
/* infinities and nans */
1251-
if (PyOS_mystrnicmp(s, "nan", 4) == 0) {
1251+
if (PyOS_strnicmp(s, "nan", 4) == 0) {
12521252
x = Py_NAN;
12531253
goto finished;
12541254
}
1255-
if (PyOS_mystrnicmp(s, "inf", 4) == 0 ||
1256-
PyOS_mystrnicmp(s, "infinity", 9) == 0) {
1255+
if (PyOS_strnicmp(s, "inf", 4) == 0 ||
1256+
PyOS_strnicmp(s, "infinity", 9) == 0) {
12571257
x = sign*Py_HUGE_VAL;
12581258
goto finished;
12591259
}

Python/pymath.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ copysign(double x, double y)
3535
#endif /* HAVE_COPYSIGN */
3636

3737
#ifndef HAVE_LOG1P
38+
#include <float.h>
39+
3840
double
3941
log1p(double x)
4042
{

0 commit comments

Comments
 (0)