[Python-checkins] r62383 - python/trunk/Include/floatobject.h

christian.heimes python-checkins at python.org
Sat Apr 19 01:49:11 CEST 2008


Author: christian.heimes
Date: Sat Apr 19 01:49:11 2008
New Revision: 62383
Log:
Stupid me. Py_RETURN_NAN should actually return something ...
Modified:
 python/trunk/Include/floatobject.h
Modified: python/trunk/Include/floatobject.h
==============================================================================
--- python/trunk/Include/floatobject.h	(original)
+++ python/trunk/Include/floatobject.h	Sat Apr 19 01:49:11 2008
@@ -22,7 +22,7 @@
 #define PyFloat_CheckExact(op) (Py_TYPE(op) == &PyFloat_Type)
 
 #ifdef Py_NAN
-#define Py_RETURN_NAN PyFloat_FromDouble(Py_NAN)
+#define Py_RETURN_NAN return PyFloat_FromDouble(Py_NAN)
 #endif
 
 #define Py_RETURN_INF(sign) do					\


More information about the Python-checkins mailing list

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