diff Objects/floatobject.c @ 49270:e86ed113535c

Merged revisions 66552-66553 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r66552 | andrew.macintyre | 2008-09-23 00:10:54 +1000 (Tue, 23 Sep 2008) | 5 lines should use macro'ed symbols not direct Part of source_os2emx.patch in issue 3868 Reviewed by Amaury Forgeot d'Arc ........ r66553 | andrew.macintyre | 2008-09-23 00:11:41 +1000 (Tue, 23 Sep 2008) | 5 lines any platform without HAVE_LOG1P should have DBL_EPSILON in <float.h> 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:49:01 +0000
parents a8d69c1a3f4e
children bdf4da5d04ad
line wrap: on
line diff
--- a/Objects/floatobject.c	Mon Sep 22 14:41:22 2008 +0000
+++ b/Objects/floatobject.c	Mon Sep 22 14:49:01 2008 +0000
@@ -1248,12 +1248,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;
 	}