[Issue 1622] New: parameters to TypeInfo_Struct.compare seem to be switched around.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Oct 28 19:21:49 PDT 2007


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

           Summary: parameters to TypeInfo_Struct.compare seem to be
                    switched around.
           Product: D
           Version: 1.022
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: tomas at famolsen.dk


TypeInfo_Struct.compare in the implementation of 'module object;' is declared
as:

int compare(void *p2, void *p1);

I think p2 and p1 should be reversed. This makes sense from the calls to xopCmp
and memcmp.


-- 



More information about the Digitalmars-d-bugs mailing list