Skip to content

Commit

Permalink
Merge pull request #4207 from Poita/Issue13795
Browse files Browse the repository at this point in the history
Issue 13795 - Add longdouble to UnionExp to provide alignment
  • Loading branch information
9rnsr committed Dec 10, 2014
2 parents f81eaaf + 6f42e72 commit c23d482
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/expression.h
Expand Up @@ -1586,6 +1586,9 @@ struct UnionExp
char addrexp [sizeof(AddrExp)];
char indexexp [sizeof(IndexExp)];
char sliceexp [sizeof(SliceExp)];

// Ensure that the union is suitably aligned.
longdouble for_alignment_only;
};
U u;
};
Expand Down

0 comments on commit c23d482

Please sign in to comment.