[Issue 18290] std.conv.parse throws ConvOverflowException for negative values in hex
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 14 12:28:02 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=18290
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at d-ecke.de
Resolution|--- |INVALID
--- Comment #3 from berni44 <bugzilla at d-ecke.de> ---
80000000(16) = 2147483648(10) which is larger than int.max. Therefore the
exception is correct. If you want to have -214748364, just add a minus sign in
the string.
--
More information about the Digitalmars-d-bugs
mailing list