Skip to content

Commit 0a9bfce

Browse files
committed
some cleanup
1 parent d525119 commit 0a9bfce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/utils/wasm3_engine.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool Wasm3Engine::instantiate(bytes_view wasm_binary)
9090
return false;
9191
}
9292

93-
auto const ret = m3_LinkRawFunction(module, "env", "adler32", "i(ii)", env_adler32);
93+
const auto ret = m3_LinkRawFunction(module, "env", "adler32", "i(ii)", env_adler32);
9494
if (ret != m3Err_none && ret != m3Err_functionLookupFailed)
9595
return false;
9696

@@ -150,7 +150,7 @@ WasmEngine::Result Wasm3Engine::execute(
150150

151151
std::vector<const void*> argPtrs;
152152
argPtrs.reserve(args.size());
153-
for (auto const& arg : args)
153+
for (const auto& arg : args)
154154
argPtrs.push_back(&arg);
155155

156156
// This ensures input count/type matches. For the return value we assume find_function did the
@@ -162,7 +162,7 @@ WasmEngine::Result Wasm3Engine::execute(
162162

163163
uint64_t ret_value = 0;
164164
// This should not fail because we check GetRetCount.
165-
[[maybe_unused]] auto const ret = m3_GetResultsV(function, &ret_value);
165+
[[maybe_unused]] const auto ret = m3_GetResultsV(function, &ret_value);
166166
assert(ret == m3Err_none);
167167
return {false, ret_value};
168168
}

0 commit comments

Comments
 (0)