From 1e8953a9cb015f5eea58506709acc2016b654c11 Mon Sep 17 00:00:00 2001 From: Onur Solmaz Date: Mon, 27 Jul 2020 13:56:53 +0200 Subject: [PATCH] Corrected InstructionType's for GetGlobal and SetGlobal --- src/rules.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules.rs b/src/rules.rs index ae0dd17..bcb812b 100644 --- a/src/rules.rs +++ b/src/rules.rs @@ -93,8 +93,8 @@ impl InstructionType { GetLocal(_) => InstructionType::Local, SetLocal(_) => InstructionType::Local, TeeLocal(_) => InstructionType::Local, - GetGlobal(_) => InstructionType::Local, - SetGlobal(_) => InstructionType::Local, + GetGlobal(_) => InstructionType::Global, + SetGlobal(_) => InstructionType::Global, I32Load(_, _) => InstructionType::Load, I64Load(_, _) => InstructionType::Load,