[Issue 20205] New: std.math: Wrong result for abs(int.min)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Sep 12 06:57:43 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=20205
Issue ID: 20205
Summary: std.math: Wrong result for abs(int.min)
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: dlang at croco-puzzle.com
assert(abs(int.min)==int.min);
The same is true for the other signed integral types.
I think, an Exception should be thrown instead.
--
More information about the Digitalmars-d-bugs
mailing list