From ff25397c9e77982bfa1133ca41b1033eb060fa3c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 29 Nov 2018 19:28:35 -0800 Subject: [PATCH] Fix the type of the heap bound variable. --- lib/environ/src/environ.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/environ/src/environ.rs b/lib/environ/src/environ.rs index 874d1f0d21..9b4bcce805 100644 --- a/lib/environ/src/environ.rs +++ b/lib/environ/src/environ.rs @@ -345,7 +345,7 @@ impl<'module_environment> cranelift_wasm::FuncEnvironment for FuncEnvironment<'m offset: Offset32::new( offset32 + offset_of!(vmcontext::VMMemory, current_length) as i32, ), - global_type: self.pointer_type(), + global_type: I32, readonly: false, }); (