http://d.puremagic.com/issues/show_bug.cgi?id=4872
Summary: std.bigint problem with negative numbers Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nob...@puremagic.com ReportedBy: bearophile_h...@eml.cc --- Comment #0 from bearophile_h...@eml.cc 2010-09-15 14:10:05 PDT --- With dmd 2.049beta this asserts: import std.bigint: BigInt; void main() { assert(((BigInt(3) * BigInt(-2)) + (BigInt(-5) * BigInt(-1))) == BigInt(-1)); } I think in some situations BigInt(3)*BigInt(-2) == BigInt(6). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------