mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:18:11 +00:00
LibWasm: Push call results back in reverse order to preserve stack order
This commit is contained in:
parent
6760ea33a0
commit
846b2c8a99
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ void BytecodeInterpreter::call_address(Configuration& configuration, FunctionAdd
|
|||
}
|
||||
|
||||
configuration.stack().entries().ensure_capacity(configuration.stack().size() + result.values().size());
|
||||
for (auto& entry : result.values())
|
||||
for (auto& entry : result.values().in_reverse())
|
||||
configuration.stack().entries().unchecked_append(move(entry));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue