Skip to content

Commit 9ca100e

Browse files
fixup switch case
1 parent 0ab67b6 commit 9ca100e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/WasmTransformer/InputStream.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ public struct InputByteStream {
165165
// https://webassembly.github.io/spec/core/binary/instructions.html#control-instructions
166166
case 0x00, 0x01: break
167167
case 0x02, 0x03, 0x04: consumeBlockType()
168-
case 0x05: break
169-
case 0x0B: break
168+
case 0x05, 0x0B: break
170169
case 0x0C, 0x0D: _ = readVarUInt32() // label index
171170
case 0x0E: consumeBrTable()
172171
case 0x0F: break
@@ -182,8 +181,7 @@ public struct InputByteStream {
182181
case 0x1A, 0x1B: break
183182

184183
// https://webassembly.github.io/spec/core/binary/instructions.html#variable-instructions
185-
case 0x20: _ = readVarUInt32()
186-
case 0x21 ... 0x24: _ = readVarUInt32() // local index
184+
case 0x20 ... 0x24: _ = readVarUInt32() // local index
187185

188186
// https://webassembly.github.io/spec/core/binary/instructions.html#memory-instructions
189187
case 0x28 ... 0x3E: consumeMemoryArg()

0 commit comments

Comments
 (0)