diff --git a/runtime/internal/genobj.d b/runtime/internal/genobj.d index 9c4246e7..5a64b886 100644 --- a/runtime/internal/genobj.d +++ b/runtime/internal/genobj.d @@ -800,11 +800,11 @@ class TypeInfo_Struct : TypeInfo { if (!p2) c = 1; else if (xopCmp) - // the x86 D calling conv requires the this arg to be last here - version(X86) + // the x86 D calling conv requires the this arg to be last here + version(X86) c = (*xopCmp)(p2, p1); - else - c = (*xopCmp)(p1, p2); + else + c = (*xopCmp)(p1, p2); else // BUG: relies on the GC not moving objects c = memcmp(p1, p2, m_init.length);