mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Change round_up_to_alignment to a macro to work on more Rust types
This commit is contained in:
parent
6a801ebc7e
commit
1ba654c5b2
4 changed files with 20 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue