Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 1bc18c3

Browse files
committed
Fix Issue 22717 - TypeInfo_Struct.equals swaps lhs and rhs parameters
1 parent 348a4ff commit 1bc18c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/object.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,8 +1885,8 @@ class TypeInfo_Struct : TypeInfo
18851885
return false;
18861886
else if (xopEquals)
18871887
{
1888-
const dg = _memberFunc(p2, xopEquals);
1889-
return dg.xopEquals(p1);
1888+
const dg = _memberFunc(p1, xopEquals);
1889+
return dg.xopEquals(p2);
18901890
}
18911891
else if (p1 == p2)
18921892
return true;

0 commit comments

Comments
 (0)