mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:37:46 +00:00
LibWasm: Drop the correct number of frames
Prior to this commit, we would be dropping an extra frame.
This commit is contained in:
parent
a21ebae652
commit
d05e5dbdcf
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ void Interpreter::branch_to_label(Configuration& configuration, LabelIndex index
|
||||||
for (; !configuration.stack().is_empty();) {
|
for (; !configuration.stack().is_empty();) {
|
||||||
auto& entry = configuration.stack().peek();
|
auto& entry = configuration.stack().peek();
|
||||||
if (entry.has<NonnullOwnPtr<Label>>()) {
|
if (entry.has<NonnullOwnPtr<Label>>()) {
|
||||||
if (drop_count-- == 0)
|
if (--drop_count == 0)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
configuration.stack().pop();
|
configuration.stack().pop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue