Skip to content

Commit

Permalink
XXX
Browse files Browse the repository at this point in the history
  • Loading branch information
skirpichev committed Jan 9, 2024
1 parent 7117df9 commit 98a58e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Python/pystrtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,7 @@ _Py_dg_dtoa_hex(double x, int precision, int always_add_sign,
double m = frexp(fabs(x), &e);

if (m || e) {
/* normalization XXX: valid after rounding? */
shift = 1 - Py_MAX(DBL_MIN_EXP - e, 0);
m = ldexp(m, shift);
e -= shift;
Expand Down

0 comments on commit 98a58e6

Please sign in to comment.