Skip to content

Minor bug fixes in string->double conversion

Compare
Choose a tag to compare
@floitsch floitsch released this 25 May 23:58

Fixes some issues in the string->double-conversion part, when Hexadecimal floats are allowed.

Specifically, 0x (and invalid literal) would access out-of-bounds before the fix, and hexadecimal literals with exponents that exceeded the integer range could overflow the exponent counter and thus yield a wrong result (and not just infinity or 0).