summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWasm
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-18 01:38:34 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-05-26 15:34:13 +0430
commitd05e5dbdcf0868174d48b5ab60e7b35285327f80 (patch)
tree3ad948bec58a5abda2180b04c1d2988e030ad564 /Userland/Libraries/LibWasm
parenta21ebae6521b2310b18a3a777575d9f479133f02 (diff)
downloadserenity-d05e5dbdcf0868174d48b5ab60e7b35285327f80.zip
LibWasm: Drop the correct number of frames
Prior to this commit, we would be dropping an extra frame.
Diffstat (limited to 'Userland/Libraries/LibWasm')
-rw-r--r--Userland/Libraries/LibWasm/AbstractMachine/Interpreter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWasm/AbstractMachine/Interpreter.cpp b/Userland/Libraries/LibWasm/AbstractMachine/Interpreter.cpp
index 68312a5f3c..05f2d68917 100644
--- a/Userland/Libraries/LibWasm/AbstractMachine/Interpreter.cpp
+++ b/Userland/Libraries/LibWasm/AbstractMachine/Interpreter.cpp
@@ -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();