diff options
Diffstat (limited to 'Userland/Libraries/LibWasm')
-rw-r--r-- | Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp | 2 | ||||
-rw-r--r-- | Userland/Libraries/LibWasm/Parser/Parser.cpp | 8 | ||||
-rw-r--r-- | Userland/Libraries/LibWasm/Types.h | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp index 5017916d88..9459806bdc 100644 --- a/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp +++ b/Userland/Libraries/LibWasm/AbstractMachine/BytecodeInterpreter.cpp @@ -245,7 +245,7 @@ void BytecodeInterpreter::store_to_memory(Configuration& configuration, Instruct dbgln("LibWasm: Memory access out of bounds (expected 0 <= {} and {} <= {})", instance_address, instance_address + data.size(), memory->size()); return; } - dbgln_if(WASM_TRACE_DEBUG, "tempoaray({}b) -> store({})", data.size(), instance_address); + dbgln_if(WASM_TRACE_DEBUG, "temporary({}b) -> store({})", data.size(), instance_address); data.copy_to(memory->data().bytes().slice(instance_address, data.size())); } diff --git a/Userland/Libraries/LibWasm/Parser/Parser.cpp b/Userland/Libraries/LibWasm/Parser/Parser.cpp index 19558070c8..dbf4b3f345 100644 --- a/Userland/Libraries/LibWasm/Parser/Parser.cpp +++ b/Userland/Libraries/LibWasm/Parser/Parser.cpp @@ -849,10 +849,10 @@ ParseResult<MemorySection::Memory> MemorySection::Memory::parse(InputStream& str ParseResult<MemorySection> MemorySection::parse(InputStream& stream) { ScopeLogger<WASM_BINPARSER_DEBUG> logger("MemorySection"); - auto memorys = parse_vector<Memory>(stream); - if (memorys.is_error()) - return memorys.error(); - return MemorySection { memorys.release_value() }; + auto memories = parse_vector<Memory>(stream); + if (memories.is_error()) + return memories.error(); + return MemorySection { memories.release_value() }; } ParseResult<Expression> Expression::parse(InputStream& stream) diff --git a/Userland/Libraries/LibWasm/Types.h b/Userland/Libraries/LibWasm/Types.h index 4677be889c..6aeb7dbf23 100644 --- a/Userland/Libraries/LibWasm/Types.h +++ b/Userland/Libraries/LibWasm/Types.h @@ -619,8 +619,8 @@ public: public: static constexpr u8 section_id = 5; - explicit MemorySection(Vector<Memory> memorys) - : m_memories(move(memorys)) + explicit MemorySection(Vector<Memory> memories) + : m_memories(move(memories)) { } |