September 12, 2019 [Issue 20205] New: std.math: Wrong result for abs(int.min) | ||||
---|---|---|---|---|
| ||||
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@puremagic.com Reporter: dlang@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. -- |
Copyright © 1999-2021 by the D Language Foundation