diff --git a/Libraries/LibWasm/Parser/Parser.cpp b/Libraries/LibWasm/Parser/Parser.cpp index 9e04fb41c2a..987b2c883ed 100644 --- a/Libraries/LibWasm/Parser/Parser.cpp +++ b/Libraries/LibWasm/Parser/Parser.cpp @@ -588,8 +588,8 @@ ParseResult Instruction::parse(ConstrainedStream& stream) // Proposal "multi-memory", if bit 6 of alignment is set, then a memory index follows the alignment. auto memory_index = 0; - if ((align & 0x20) != 0) { - align &= ~0x20; + if ((align & 0x40) != 0) { + align &= ~0x40; memory_index = TRY_READ(stream, LEB128, ParseError::InvalidInput); } @@ -610,8 +610,8 @@ ParseResult Instruction::parse(ConstrainedStream& stream) // Proposal "multi-memory", if bit 6 of alignment is set, then a memory index follows the alignment. auto memory_index = 0; - if ((align & 0x20) != 0) { - align &= ~0x20; + if ((align & 0x40) != 0) { + align &= ~0x40; memory_index = TRY_READ(stream, LEB128, ParseError::InvalidInput); }