Mercurial > projects > ldc
diff runtime/internal/genobj.d @ 730:09b88beffd2d
Enable arg reversal on x86 by default. Make change to TypeInfo_Struct.compare to accomodate for it.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 26 Oct 2008 21:16:21 +0100 |
parents | 635f91212b78 |
children | d63741d00ee3 |
line wrap: on
line diff
--- a/runtime/internal/genobj.d Sun Oct 26 17:31:05 2008 +0100 +++ b/runtime/internal/genobj.d Sun Oct 26 21:16:21 2008 +0100 @@ -800,7 +800,11 @@ { if (!p2) c = 1; else if (xopCmp) - c = (*xopCmp)(p1, p2); + // 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 // BUG: relies on the GC not moving objects c = memcmp(p1, p2, m_init.length);