From d30f8c6752405195f0ed5f6335509d5ae22a7443 Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 6 Nov 2020 17:19:11 +0000 Subject: [PATCH] Add assert --- lib/fizzy/execute.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fizzy/execute.cpp b/lib/fizzy/execute.cpp index c793482ac..02cf5ecb3 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 + assert(func_type.outputs.size() == (ret.has_value ? 1 : 0)); if (ret.has_value) stack.push(ret.value);