[Issue 22637] std.conv `to!double` and `parse!double` dont throw on under/overflow

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 8 18:27:19 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=22637

Dlang Bot <dlang-bot at dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
@GrimMaple created dlang/phobos pull request #8502 "Fix Issue 22637 - std.conv
`to!double` and `parse!double` dont throw on under/overflow" fixing this issue:

- Fix Issue 22637 - std.conv `to!double` and `parse!double` dont throw on
under/overflow

  This happened because `parse` enforced on real.
  And provided number actually fits real.
  Changed to enforce on `Target` type instead

https://github.com/dlang/phobos/pull/8502

--


More information about the Digitalmars-d-bugs mailing list