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 authored and pchickey committed Dec 20, 2019
1 parent 448bd07 commit 5158f0f
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 5158f0f

Please sign in to comment.