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:
parent
fecbf0e03a
commit
76ed7f2b20
1 changed files with 2 additions and 2 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue