From c0abd7bbb50fcb6e236d1c7dcb1ae17096b2b2e6 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Sat, 21 May 2022 12:51:03 +0200 Subject: [PATCH] Update lib/fizzy/execute.cpp --- lib/fizzy/execute.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fizzy/execute.cpp b/lib/fizzy/execute.cpp index 02cf5ecb32..ec0acf535c 100644 --- a/lib/fizzy/execute.cpp +++ b/lib/fizzy/execute.cpp @@ -489,6 +489,7 @@ inline bool invoke_function(const FuncType& func_type, uint32_t func_idx, Instan stack.drop(num_args); // Push back the result + // NOTE: validation ensures there are at most 1 output values assert(func_type.outputs.size() == (ret.has_value ? 1 : 0)); if (ret.has_value) stack.push(ret.value);