summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm/AbstractMachine
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-12-04 17:59:20 +0330
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-12-21 05:03:44 +0330
commit76ed7f2b20637e3194a11113f284dc7b36a9725b (patch)
tree04a84a7d86bd272ff83ad59ccaddc39b5c42f461 /Userland/Libraries/LibWasm/AbstractMachine
parentfecbf0e03a2240d8de2fcda38632f2eeaa3f069a (diff)
downloadserenity-76ed7f2b20637e3194a11113f284dc7b36a9725b.zip
LibWasm: Fix silly typo in f32 reinterpret validation
Diffstat (limited to 'Userland/Libraries/LibWasm/AbstractMachine')
-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 {};
}