]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Correct _PyLong_Frexp() description in comments (GH-132716)
authorSergey B Kirpichev <skirpichev@gmail.com>
Sat, 19 Apr 2025 07:42:20 +0000 (10:42 +0300)
committerGitHub <noreply@github.com>
Sat, 19 Apr 2025 07:42:20 +0000 (07:42 +0000)
This amends d08c788822, now this function always successful.

Objects/longobject.c

index ffb3f95bdb95937dbcc1cada120a18a33bc5a4de..2dfd82bab1a834eb3d41dff22b0896adc8e16f94 100644 (file)
@@ -3438,9 +3438,7 @@ x_divrem(PyLongObject *v1, PyLongObject *w1, PyLongObject **prem)
 /* For a nonzero PyLong a, express a in the form x * 2**e, with 0.5 <=
    abs(x) < 1.0 and e >= 0; return x and put e in *e.  Here x is
    rounded to DBL_MANT_DIG significant bits using round-half-to-even.
-   If a == 0, return 0.0 and set *e = 0.  If the resulting exponent
-   e is larger than PY_SSIZE_T_MAX, raise OverflowError and return
-   -1.0. */
+   If a == 0, return 0.0 and set *e = 0.  */
 
 /* attempt to define 2.0**DBL_MANT_DIG as a compile-time constant */
 #if DBL_MANT_DIG == 53