Skip to content

Commit

Permalink
Win64
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Aug 31, 2012
1 parent d909c4f commit 31f858b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/backend/cgelem.c
Expand Up @@ -2670,14 +2670,14 @@ CEXTERN elem * elstruct(elem *e)
goto L1;
}
}
if (config.exe == EX_WIN64)
goto Ldefault;
if (targ1 && !targ2)
goto L1;
if (I64 && ty == TYstruct)
{ tym = TYucent;
goto L1;
}
if (config.exe == EX_WIN64)
goto Ldefault;
if (targ1 && !targ2)
goto L1;
goto Ldefault;

L1:
Expand Down
2 changes: 2 additions & 0 deletions src/e2ir.c
Expand Up @@ -3923,6 +3923,8 @@ elem *CastExp::toElem(IRState *irs)

if (fsize != tsize)
{ // Array element sizes do not match, so we must adjust the dimensions
if (config.exe == EX_WIN64)
e = addressElem(e, t, true);
elem *ep = el_params(e, el_long(TYsize_t, fsize), el_long(TYsize_t, tsize), NULL);
e = el_bin(OPcall, type->totym(), el_var(rtlsym[RTLSYM_ARRAYCAST]), ep);
}
Expand Down

0 comments on commit 31f858b

Please sign in to comment.