Skip to content

Commit

Permalink
fix(runtime-core) Same bug with field-offset as before.
Browse files Browse the repository at this point in the history
It will be fixed in a following PR.
  • Loading branch information
Hywan committed Nov 12, 2019
1 parent 5d6c74b commit a1e8a8f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lib/runtime-core/src/vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -838,15 +838,9 @@ mod vm_offset_tests {

#[test]
fn imported_func() {
assert_eq!(
ImportedFunc::offset_func() as usize,
offset_of!(ImportedFunc => func).get_byte_offset(),
);
assert_eq!(ImportedFunc::offset_func() as usize, 0);

assert_eq!(
ImportedFunc::offset_func_ctx() as usize,
offset_of!(ImportedFunc => func_ctx).get_byte_offset(),
);
assert_eq!(ImportedFunc::offset_func_ctx() as usize, 8);
}

#[test]
Expand Down

0 comments on commit a1e8a8f

Please sign in to comment.