Skip to content

Commit

Permalink
witx layout: fix calculation of union size
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Hickey committed Dec 20, 2019
1 parent d3794c5 commit 3857728
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/witx/src/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ impl UnionDatatype {
.map(|sa| sa.align)
.max()
.expect("nonzero variants");
let size = align_to(size, align);
SizeAlign { size, align }
}
}
Expand Down

0 comments on commit 3857728

Please sign in to comment.