From: Andrew MacIntyre Date: Mon, 22 Sep 2008 14:10:54 +0000 (+0000) Subject: should use macro'ed symbols not direct X-Git-Tag: v2.6~54 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8c47cabbe9da1972597007bc8c89efd3a615addb;p=thirdparty%2FPython%2Fcpython.git should use macro'ed symbols not direct Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc --- diff --git a/Objects/floatobject.c b/Objects/floatobject.c index cb388009b452..2faff34cc3c7 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -1339,12 +1339,12 @@ float_fromhex(PyObject *cls, PyObject *arg) s++; /* infinities and nans */ - if (PyOS_mystrnicmp(s, "nan", 4) == 0) { + if (PyOS_strnicmp(s, "nan", 4) == 0) { x = Py_NAN; goto finished; } - if (PyOS_mystrnicmp(s, "inf", 4) == 0 || - PyOS_mystrnicmp(s, "infinity", 9) == 0) { + if (PyOS_strnicmp(s, "inf", 4) == 0 || + PyOS_strnicmp(s, "infinity", 9) == 0) { x = sign*Py_HUGE_VAL; goto finished; }