From 6285aee0776a26510bccef579a40013c2db32943 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Wed, 1 Jan 2020 22:58:13 +0100 Subject: [PATCH] fix the the type of GET field of struct --- .../jwebassembly/module/WasmStructInstruction.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java b/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java index d922757..9ad9c03 100644 --- a/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java +++ b/src/de/inetsoftware/jwebassembly/module/WasmStructInstruction.java @@ -1,5 +1,5 @@ /* - Copyright 2018 - 2019 Volker Berlin (i-net software) + Copyright 2018 - 2020 Volker Berlin (i-net software) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -194,8 +194,9 @@ class WasmStructInstruction extends WasmInstruction { return ValueType.anyref; case NEW: case NEW_DEFAULT: - case GET: return type; + case GET: + return fieldName.getType(); case SET: return null; default: