Skip to content

Commit 95800fe

Browse files
authored
Correct _PyLong_Frexp() description in comments (GH-132716)
This amends d08c788, now this function always successful.
1 parent 815061c commit 95800fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Objects/longobject.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -3438,9 +3438,7 @@ x_divrem(PyLongObject *v1, PyLongObject *w1, PyLongObject **prem)
34383438
/* For a nonzero PyLong a, express a in the form x * 2**e, with 0.5 <=
34393439
abs(x) < 1.0 and e >= 0; return x and put e in *e. Here x is
34403440
rounded to DBL_MANT_DIG significant bits using round-half-to-even.
3441-
If a == 0, return 0.0 and set *e = 0. If the resulting exponent
3442-
e is larger than PY_SSIZE_T_MAX, raise OverflowError and return
3443-
-1.0. */
3441+
If a == 0, return 0.0 and set *e = 0. */
34443442

34453443
/* attempt to define 2.0**DBL_MANT_DIG as a compile-time constant */
34463444
#if DBL_MANT_DIG == 53

0 commit comments

Comments
 (0)