Skip to content

Commit 8c47cab

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
1 parent 29fdcad commit 8c47cab

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)