From 442b582dfc7a5cc799cde75f19df783910fc206f Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Thu, 2 Jan 2020 18:10:48 +0100 Subject: [PATCH] accept also AnyType as block type --- .../jwebassembly/binary/BinaryModuleWriter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java b/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java index ad9012c..ab998b3 100644 --- a/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java +++ b/src/de/inetsoftware/jwebassembly/binary/BinaryModuleWriter.java @@ -1,5 +1,5 @@ /* - * Copyright 2017 - 2019 Volker Berlin (i-net software) + * Copyright 2017 - 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. @@ -1202,7 +1202,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod break; case IF: codeStream.writeOpCode( IF ); - codeStream.writeValueType( ((ValueType)data) ); + codeStream.writeValueType( ((AnyType)data) ); break; case ELSE: codeStream.writeOpCode( ELSE ); @@ -1215,7 +1215,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod break; case BLOCK: codeStream.writeOpCode( BLOCK ); - codeStream.writeValueType( data == null ? ValueType.empty : (ValueType)data ); // void; the return type of the block. + codeStream.writeValueType( data == null ? ValueType.empty : (AnyType)data ); // void; the return type of the block. break; case BR: codeStream.writeOpCode( BR );