diff --git a/src/de/inetsoftware/jwebassembly/binary/StructTypeEntry.java b/src/de/inetsoftware/jwebassembly/binary/StructTypeEntry.java index c69b6d9..a2ef514 100644 --- a/src/de/inetsoftware/jwebassembly/binary/StructTypeEntry.java +++ b/src/de/inetsoftware/jwebassembly/binary/StructTypeEntry.java @@ -59,6 +59,9 @@ class StructTypeEntry extends TypeEntry { stream.writeVaruint32( this.fields.size() ); for( NamedStorageType field : this.fields ) { stream.writeVarint( 1 ); // 0 - immutable; 1 - mutable + if( field.type.getCode() > 0 ) { + stream.writeVaruint32( 0x6E ); + } stream.writeValueType( field.type ); } }