Thread overview | |||||
---|---|---|---|---|---|
|
February 18, 2011 [Issue 5608] New: BigInt(1)-1 problem | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from bearophile_hugs@eml.cc 2011-02-18 03:18:46 PST --- 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: ------- |
February 23, 2011 [Issue 5608] BigInt(1)-1 problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | 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 --- Comment #1 from Don <clugdbug@yahoo.com.au> 2011-02-23 13:36:54 PST --- 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: ------- |
February 23, 2011 [Issue 5608] BigInt(1)-1 problem | ||||
---|---|---|---|---|
| ||||
Posted in reply to bearophile_hugs@eml.cc | http://d.puremagic.com/issues/show_bug.cgi?id=5608 --- Comment #2 from bearophile_hugs@eml.cc 2011-02-23 15:12:21 PST --- Thank you Don. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation