Summary: D2 phobos BigInt opMul doesn't work correctly
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: patch
          Severity: normal
          Priority: P2
         Component: Phobos

It won't pass this test

 BigInt a = 10;
 BigInt b = a * a;
 foreach (i; 0..100)
    assert(a * a == b);
    a *= i;
    b *= i * i;

To fix this bug.
Find this around BigInt.d line 907

    c = updateShr(c);

replace it with

    c = updateUShr(c);

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to