digitalmars.D.bugs - [Issue 5608] New: BigInt(1)-1 problem
- d-bugmail puremagic.com (25/25) Feb 18 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5608
- d-bugmail puremagic.com (13/13) Feb 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5608
- d-bugmail puremagic.com (6/6) Feb 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=5608
http://d.puremagic.com/issues/show_bug.cgi?id=5608 Summary: BigInt(1)-1 problem Product: D Version: D2 Platform: x86 OS/Version: Windows Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: bearophile_hugs eml.cc This program prints "-0" and then the assert fires, dmd 2.052: import std.stdio, std.bigint; void main() { writeln(BigInt(1)-1); assert((BigInt(1)-1) == 0); } Output: -0 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 18 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5608 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |clugdbug yahoo.com.au Resolution| |FIXED Fixed: https://github.com/D-Programming-Language/phobos/commit/6b0a96289e7ecffe2a102b0da9cad6a8da7d4653 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 23 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5608 Thank you Don. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Feb 23 2011