summary refs log tree commit diff
path: root/emit.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin@c9x.me>2017-04-08 21:11:33 -0400
committerQuentin Carbonneaux <quentin@c9x.me>2017-04-08 21:56:20 -0400
commit9d1c38d69547d835f7228651e71e8a7d744c456d (patch)
tree39b4b34af250d1f68b8a8f982cad299a2fbf5f94 /emit.c
parent81e2fdacc536dab7ad3c1e1da313b80f5ae935b7 (diff)
downloadroux-9d1c38d69547d835f7228651e71e8a7d744c456d.tar.gz
fix bug in union size computation
The size of a union is the size of the largest
element aligned with the largest alignment.

For example, the size of the following union is
16, not 13 (as returned before this patch).

union {
	char c[13];
	int i;
};
Diffstat (limited to 'emit.c')
0 files changed, 0 insertions, 0 deletions