diff options
author | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2008-09-22 14:10:54 +0000 |
---|---|---|
committer | Andrew MacIntyre <andymac@bullseye.apana.org.au> | 2008-09-22 14:10:54 +0000 |
commit | bea607a4722ea75659c80d4fd993a048c08417f1 (patch) | |
tree | 7949d87cd8b1715909e5862f8da820d3d2dedd32 /Objects/floatobject.c | |
parent | db170131ae698220a577577130f42a133d437b0f (diff) | |
download | cpython-bea607a4722ea75659c80d4fd993a048c08417f1.tar.gz |
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 cb388009b4..2faff34cc3 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; } |