www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11072] New: BitArray.opCmp is invalid on 64x

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

           Summary: BitArray.opCmp is invalid on 64x
           Product: D
           Version: unspecified
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: nikolay.v.belov gmail.com


--- Comment #0 from nbelov <nikolay.v.belov gmail.com> 2013-09-19 22:30:52 PDT
---
bool[] v1;
v1.length = 33;
v1[] = false;

bool[] v2;
v2.length = 33;
v2[] = false;

v1[31] = true;
v2[32] = true;

BitArray a1; a1.init(v1);
BitArray a2; a2.init(v2);
assert(a1 > a2);

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