Skip to content

Commit 897d5d1

Browse files
author
andrew.macintyre
committed
should use macro'ed symbols not direct
Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc git-svn-id: http://svn.python.org/projects/python/trunk@66552 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent bec44c9 commit 897d5d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Objects/floatobject.c

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

13411341
/* infinities and nans */
1342-
if (PyOS_mystrnicmp(s, "nan", 4) == 0) {
1342+
if (PyOS_strnicmp(s, "nan", 4) == 0) {
13431343
x = Py_NAN;
13441344
goto finished;
13451345
}
1346-
if (PyOS_mystrnicmp(s, "inf", 4) == 0 ||
1347-
PyOS_mystrnicmp(s, "infinity", 9) == 0) {
1346+
if (PyOS_strnicmp(s, "inf", 4) == 0 ||
1347+
PyOS_strnicmp(s, "infinity", 9) == 0) {
13481348
x = sign*Py_HUGE_VAL;
13491349
goto finished;
13501350
}

0 commit comments

Comments
 (0)