c99-snprintf icon indicating copy to clipboard operation
c99-snprintf copied to clipboard

[IMPROVEMENT] `mypow10` parameters or result should be checked to guard against overflow

Open zfields opened this issue 3 years ago • 0 comments

Is there a known upper and lower bounds of the exponent, or a LDOUBLE_MAX variable or equivalent (maybe DBL_MAX)? If so, then we could protect against overflow.

The cast() function test against INTMAX_MAX for this very reason.

zfields avatar Dec 14 '21 21:12 zfields