[Issue 4470] New: Problems with std.bigint mod and divide
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri Jul 16 04:35:10 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=4470
           Summary: Problems with std.bigint mod and divide
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: yebblies at gmail.com
--- Comment #0 from yebblies <yebblies at gmail.com> 2010-07-16 04:35:08 PDT ---
With the version of std.bigint packaged with dmd2.047 (on winxp / x86)
1. You get 'object.Error: Win32 Exception' 
   when attempting any BigInt % BigInt(1) or BigInt % 1.
Test case:
import std.bigint;
void main()
{
  auto r1 = BigInt(6) % 1;
  auto r2 = BigInt(6) % BigInt(1);
}
2. BigInt % BigInt(0) seems to go into an infinite loop
import std.bigint;
void main()
{
  auto r = BigInt(6) % BigInt(0);
}
-- 
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