summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp
index 6a5d6bd9b1..5d05032059 100644
--- a/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp
+++ b/Userland/Libraries/LibWasm/AbstractMachine/Validator.cpp
@@ -1626,11 +1626,11 @@ VALIDATE_INSTRUCTION(f64_reinterpret_i64)
VALIDATE_INSTRUCTION(i32_reinterpret_f32)
{
- if (stack.is_empty() || !stack.last().is_of_kind(ValueType::I32))
+ if (stack.is_empty() || !stack.last().is_of_kind(ValueType::F32))
return Errors::invalid_stack_state();
stack.take_last();
- stack.append(ValueType(ValueType::F32));
+ stack.append(ValueType(ValueType::I32));
return {};
}