[Python-checkins] r66552 - python/trunk/Objects/floatobject.c
andrew.macintyre
python-checkins at python.org
Mon Sep 22 16:10:54 CEST 2008
Author: andrew.macintyre
Date: Mon Sep 22 16:10:54 2008
New Revision: 66552
Log:
should use macro'ed symbols not direct
Part of source_os2emx.patch in issue 3868
Reviewed by Amaury Forgeot d'Arc
Modified:
python/trunk/Objects/floatobject.c
Modified: python/trunk/Objects/floatobject.c
==============================================================================
--- python/trunk/Objects/floatobject.c (original)
+++ python/trunk/Objects/floatobject.c Mon Sep 22 16:10:54 2008
@@ -1339,12 +1339,12 @@
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;
}
More information about the Python-checkins
mailing list