diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2008-09-22 14:10:54 (GMT) |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2008-09-22 14:10:54 (GMT) |
commit | 8c47cabbe9da1972597007bc8c89efd3a615addb (patch) | |
tree | 89b527db3b3a5aac060110a9478c33e61d818c4f /Objects/floatobject.c | |
parent | 29fdcad93d8f7cc749f46e0d67546a2ba02c84ff (diff) | |
download | cpython-8c47cabbe9da1972597007bc8c89efd3a615addb.zip cpython-8c47cabbe9da1972597007bc8c89efd3a615addb.tar.gz cpython-8c47cabbe9da1972597007bc8c89efd3a615addb.tar.bz2 |
should use macro'ed symbols not direct
Part of source_os2emx.patch in issue 3868
Reviewed by Amaury Forgeot d'Arc
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index cb38800..2faff34 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; } |