Skip to content

Commit

Permalink
strtod: fix compilation on some platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 20, 2024
1 parent 88003b7 commit d906522
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libc/ansi/stdlib/strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,11 @@ strtod(const char *s, char **sret)
r *= 0.1L;
/* Detect underflow below 2^-1075, which is half
the smallest representable double. */
#if 0
if (r < 2.47032822920623272088e-324L)
#else
if (r < 5e-324L)
#endif
{
errno = ERANGE;
r = 0.0;
Expand Down

0 comments on commit d906522

Please sign in to comment.