From 39770ec72c2dc1661138956b55ea236aaa9499d4 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 3 Jan 2019 12:05:26 -0800 Subject: [PATCH] Minor code tidying. --- lib/runtime/src/instance.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runtime/src/instance.rs b/lib/runtime/src/instance.rs index afc10459d4..cbfcf3bbba 100644 --- a/lib/runtime/src/instance.rs +++ b/lib/runtime/src/instance.rs @@ -717,7 +717,7 @@ fn get_memory_init_start( } else { contents.imported_global(base).from }; - start += cast::usize(unsafe { *(&*global).as_u32() }); + start += cast::usize(*unsafe { (*global).as_u32() }); } start @@ -787,7 +787,7 @@ fn get_table_init_start( } else { contents.imported_global(base).from }; - start += cast::usize(unsafe { *(&*global).as_u32() }); + start += cast::usize(*unsafe { (*global).as_u32() }); } start