http://d.puremagic.com/issues/show_bug.cgi?id=7993

           Summary: BigInt divide-by-1 error
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: c.m.brandenb...@gmail.com


--- Comment #0 from c.m.brandenb...@gmail.com 2012-04-26 15:55:34 PDT ---
It seems that dividing a BigInt by 1 has the same effect as multiplying by 2.

The following program:

import std.bigint;
import std.stdio;

void main() {
  BigInt foo = 10;
  writeln(foo / 1);
  writeln(foo / 2);
}

Outputs:

$ ./main
20
5

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to