Skip to content

Commit

Permalink
merge D2 pull 206
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jul 3, 2011
1 parent a5bc620 commit 8d81d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/e2ir.c
Expand Up @@ -473,9 +473,9 @@ elem *array_toDarray(Type *t, elem *e)

if (ty == TYstruct)
{ unsigned sz = type_size(e->ET);
if (sz == 4)
if (sz <= 4)
ty = TYint;
else if (sz == 8)
else if (sz <= 8)
ty = TYllong;
}
e->Ety = ty;
Expand Down

0 comments on commit 8d81d40

Please sign in to comment.