1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:57:35 +00:00

LibWasm: Fix silly typo in f32 reinterpret validation

This commit is contained in:
Ali Mohammad Pur 2021-12-04 17:59:20 +03:30 committed by Ali Mohammad Pur
parent fecbf0e03a
commit 76ed7f2b20

View file

@ -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 {};
}