www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1622] New: parameters to TypeInfo_Struct.compare seem to be switched around.

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: tomas 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.


-- 
Oct 28 2007
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1622


tomas famolsen.dk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |trivial





this is an obvious and easy to fix error. shouldn't really take about a year to
fix!


-- 
Jul 11 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1622


bugzilla digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED





Fixed dmd 1.034 and 2.018


-- 
Aug 14 2008