[Issue 4470] Problems with std.bigint mod and divide
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jul 16 05:02:12 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4470
--- Comment #3 from yebblies <yebblies at gmail.com> 2010-07-16 05:02:11 PDT ---
This seems to crash with every power of two, int or BigInt.
import std.bigint;
void main()
{
foreach(a; 0..1000)
{
foreach(b; 0..1000)
{
try
{
scope(failure) writeln(a, " % ", b, " failed");
auto x = BigInt(a) % b;
} catch {}
try
{
scope(failure) writeln(a, " % BigInt(", b, ") failed");
auto x = BigInt(a) % BigInt(b);
} catch {}
}
}
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list