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
Notes:
sideshowbarker
2024-07-18 17:23:04 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/d05e5dbdcf0 Pull-request: https://github.com/SerenityOS/serenity/pull/7395 Reviewed-by: https://github.com/linusg
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();) {
|
||||
auto& entry = configuration.stack().peek();
|
||||
if (entry.has<NonnullOwnPtr<Label>>()) {
|
||||
if (drop_count-- == 0)
|
||||
if (--drop_count == 0)
|
||||
break;
|
||||
}
|
||||
configuration.stack().pop();
|
||||
|
|
Loading…
Add table
Reference in a new issue