Bug 1622 – parameters to TypeInfo_Struct.compare seem to be switched around.
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P2
Component
phobos
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-10-28T21:21:00Z
Last change time
2014-02-24T15:59:59Z
Assigned to
bugzilla
Creator
tomas
Comments
Comment #0 by tomas — 2007-10-28T21:21:47Z
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.
Comment #1 by tomas — 2008-07-11T13:52:31Z
this is an obvious and easy to fix error. shouldn't really take about a year to fix!