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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jul 12 08:44:20 UTC 2022


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/phobos pull request #8502 "Fix Issue 22637 - std.conv `to!double` and
`parse!double` dont throw on under/overflow" was merged into master:

- 1c3903c2e644d55913708b6867e33aab1a076ac9 by Grim Maple:
  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