Change round_up_to_alignment to a macro to work on more Rust types

This commit is contained in:
Brian Carroll 2021-12-08 21:11:10 +00:00
parent 6a801ebc7e
commit 1ba654c5b2
4 changed files with 20 additions and 18 deletions

View file

@ -171,7 +171,7 @@ impl<'a> Storage<'a> {
}
let offset =
round_up_to_alignment(self.stack_frame_size, *alignment_bytes as i32);
round_up_to_alignment!(self.stack_frame_size, *alignment_bytes as i32);
self.stack_frame_size = offset + (*size as i32);