From: Kristján Valur Jónsson Date: Thu, 25 May 2006 16:39:27 +0000 (+0000) Subject: Fix incorrect documentation for the Py_IS_FINITE(X) macro. X-Git-Tag: v2.5b1~536 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44aa9f7139bb6e05756ca156a00ca2952761fe7e;p=python Fix incorrect documentation for the Py_IS_FINITE(X) macro. --- diff --git a/Include/pyport.h b/Include/pyport.h index 15e2260e1f..fe79f6dbe9 100644 --- a/Include/pyport.h +++ b/Include/pyport.h @@ -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