Skip to content

Commit

Permalink
Update rts/motoko-rts/src/static_checks.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Joachim Breitner <[email protected]>
  • Loading branch information
osa1 and nomeata authored Sep 10, 2021
1 parent ede201c commit 3b43827
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rts/motoko-rts/src/static_checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const_assert_eq!(size_of::<usize>(), size_of::<u32>());
const_assert_eq!(size_of::<usize>(), WORD_SIZE);

// Check that sizes of structs are as expected by the compiler
// (Expectations are all over the place, e.g. `header_size` definitions in `compile.ml`, calls to `static_closure`, etc.)
const_assert_eq!(size_of::<Obj>(), 1 * WORD_SIZE);
const_assert_eq!(size_of::<ObjInd>(), 2 * WORD_SIZE);
const_assert_eq!(size_of::<Closure>(), 3 * WORD_SIZE);
Expand Down

0 comments on commit 3b43827

Please sign in to comment.