gh-141004: soft-deprecate Py_INFINITY macro (#141033)

Co-authored-by: Victor Stinner <vstinner@python.org>
This commit is contained in:
Sergey B Kirpichev 2025-11-12 15:44:49 +03:00 committed by GitHub
parent c6f3dd6a50
commit e2026731f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 45 additions and 36 deletions

View file

@ -2415,7 +2415,7 @@ PyFloat_Unpack2(const char *data, int le)
if (e == 0x1f) {
if (f == 0) {
/* Infinity */
return sign ? -Py_INFINITY : Py_INFINITY;
return sign ? -INFINITY : INFINITY;
}
else {
/* NaN */