Skip to content

Commit

Permalink
Fixed dereference error
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Apr 16, 2020
1 parent c79b736 commit e714f55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime-c-api/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub unsafe extern "C" fn wasmer_module_deserialize(
let serialized_module: &[u8] = &*(serialized_module as *const &[u8]);

match Artifact::deserialize(serialized_module) {
Ok(artifact) => match load_cache_with(artifact, &*default_compiler()) {
Ok(artifact) => match load_cache_with(artifact, &default_compiler()) {
Ok(deserialized_module) => {
*module = Box::into_raw(Box::new(deserialized_module)) as _;
wasmer_result_t::WASMER_OK
Expand Down

0 comments on commit e714f55

Please sign in to comment.