]> granicus.if.org Git - python/commitdiff
Fix incorrect documentation for the Py_IS_FINITE(X) macro.
authorKristján Valur Jónsson <kristjan@ccpgames.com>
Thu, 25 May 2006 16:39:27 +0000 (16:39 +0000)
committerKristján Valur Jónsson <kristjan@ccpgames.com>
Thu, 25 May 2006 16:39:27 +0000 (16:39 +0000)
Include/pyport.h

index 15e2260e1ff4f7d226123db15ccb69c7391c6576..fe79f6dbe9c2432dcf7306097f3f73b05d095365 100644 (file)
@@ -295,9 +295,9 @@ extern "C" {
 #define Py_IS_INFINITY(X) ((X) && (X)*0.5 == (X))
 #endif
 
-/* Py_IS_INFINITY(X)
- * Return 1 if float or double arg is an infinity, else 0.
- * Some architectures (Windows) have intrinsics for this, so a special
+/* Py_IS_FINITE(X)
+ * Return 1 if float or double arg is neither infinite nor NAN, else 0.
+ * Some compilers (e.g. VisualStudio) have intrisics for this, so a special
  * macro for this particular test is useful
  */
 #ifndef Py_IS_FINITE