Skip to content

Commit

Permalink
Add assert
Browse files Browse the repository at this point in the history
  • Loading branch information
axic committed Nov 6, 2020
1 parent 1b161a3 commit d30f8c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/fizzy/execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d30f8c6

Please sign in to comment.