Skip to content

Commit 0ec4dfd

Browse files
chfastgumb0
andauthored
Apply suggestions from code review
Co-authored-by: Andrei Maiboroda <[email protected]>
1 parent f60bba7 commit 0ec4dfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: test/utils/fizzy_engine.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ WasmEngine::Result FizzyEngine::execute(
136136
{
137137
static_assert(sizeof(uint64_t) == sizeof(Value));
138138
const auto first_arg = reinterpret_cast<const Value*>(args.data());
139+
assert(args.size() == m_instance->module.get_function_type(static_cast<uint32_t>(func_ref)).inputs.size());
139140
const auto status = fizzy::execute(*m_instance, static_cast<uint32_t>(func_ref), first_arg);
140141
if (status.trapped)
141142
return {true, std::nullopt};

0 commit comments

Comments
 (0)