[Python-checkins] r60789 - python/branches/trunk-math/Modules/cmathmodule.c

christian.heimes python-checkins at python.org
Thu Feb 14 09:46:55 CET 2008


Author: christian.heimes
Date: Thu Feb 14 09:46:55 2008
New Revision: 60789
Modified:
 python/branches/trunk-math/Modules/cmathmodule.c
Log:
Fix NAN definition
Modified: python/branches/trunk-math/Modules/cmathmodule.c
==============================================================================
--- python/branches/trunk-math/Modules/cmathmodule.c	(original)
+++ python/branches/trunk-math/Modules/cmathmodule.c	Thu Feb 14 09:46:55 2008
@@ -99,7 +99,7 @@
 special value arrays need a constant we have to role our own infinity
 and nan. */
 # define INF (DBL_MAX*DBL_MAX)
-# define N (I*0.)
+# define N (INF*0.)
 #else
 # define INF Py_HUGE_VAL
 # define N Py_NAN


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /