diff Objects/floatobject.c @ 49266:f3da56e3fce4 legacy-trunk

should use macro'ed symbols not direct Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc
author Andrew MacIntyre <andymac@bullseye.apana.org.au>
date Mon, 22 Sep 2008 14:10:54 +0000
parents 974040c8f369
children 2e794757bdc8
line wrap: on
line diff
--- a/Objects/floatobject.c	Sun Sep 21 22:31:59 2008 +0000
+++ b/Objects/floatobject.c	Mon Sep 22 14:10:54 2008 +0000
@@ -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;
 	}