From 33219f6d7ac63a5c526e75cce680c04adb423e18 Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Thu, 4 Jun 2020 13:45:29 +0200 Subject: [PATCH] Fix reading of branch instructions immediate for parent stack height --- lib/fizzy/execute.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fizzy/execute.cpp b/lib/fizzy/execute.cpp index 79bf340dd..cf463fa7b 100644 --- a/lib/fizzy/execute.cpp +++ b/lib/fizzy/execute.cpp @@ -248,7 +248,7 @@ void branch( { const auto code_offset = read(immediates); const auto imm_offset = read(immediates); - const auto stack_height = static_cast(read(immediates)); + const auto stack_height = static_cast(read(immediates)); const auto arity = read(immediates); pc = code.instructions.data() + code_offset;