diff options
author | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-05-25 16:39:27 (GMT) |
---|---|---|
committer | Kristján Valur Jónsson <kristjan@ccpgames.com> | 2006-05-25 16:39:27 (GMT) |
commit | 44aa9f7139bb6e05756ca156a00ca2952761fe7e (patch) | |
tree | 0d7d4b1493054c75eeb0cb472c8acdd72b8eae41 /Include | |
parent | cc1ecf4d6d97431fe3e1060567afea9d1449b574 (diff) | |
download | cpython-44aa9f7139bb6e05756ca156a00ca2952761fe7e.zip cpython-44aa9f7139bb6e05756ca156a00ca2952761fe7e.tar.gz cpython-44aa9f7139bb6e05756ca156a00ca2952761fe7e.tar.bz2 |
Fix incorrect documentation for the Py_IS_FINITE(X) macro.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/pyport.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Include/pyport.h b/Include/pyport.h index 15e2260..fe79f6d 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 |