Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2317)

Unified Diff: test/cctest/wasm/test-run-wasm.cc

Issue 1536663002: Fixing more wasm warnings. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/wasm/wasm-opcodes.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/wasm/test-run-wasm.cc
diff --git a/test/cctest/wasm/test-run-wasm.cc b/test/cctest/wasm/test-run-wasm.cc
index 087df9dfc442c20e1e47f7ca62c7e0a25c4b6290..a0438854fa86e5c1bd19e20392f8f69d3172f372 100644
--- a/test/cctest/wasm/test-run-wasm.cc
+++ b/test/cctest/wasm/test-run-wasm.cc
@@ -264,7 +264,7 @@ class WasmFunctionCompiler : public HandleAndZoneScope,
uint32_t CompileAndAdd(TestingModule* module) {
uint32_t index = 0;
if (module->module && module->module->functions) {
- index = module->module->functions->size();
+ index = static_cast<uint32_t>(module->module->functions->size());
}
module->AddFunction(env.sig, Compile(module));
return index;
@@ -2620,7 +2620,7 @@ TEST(Run_WasmCallF32StackParameter) {
TestingModule module;
WasmFunctionCompiler t(&sig);
BUILD(t, WASM_GET_LOCAL(17));
- unsigned index = t.CompileAndAdd(&module);
+ uint32_t index = t.CompileAndAdd(&module);
// Build the calling function.
WasmRunner<float> r;
@@ -2646,7 +2646,7 @@ TEST(Run_WasmCallF64StackParameter) {
TestingModule module;
WasmFunctionCompiler t(&sig);
BUILD(t, WASM_GET_LOCAL(17));
- unsigned index = t.CompileAndAdd(&module);
+ uint32_t index = t.CompileAndAdd(&module);
// Build the calling function.
WasmRunner<double> r;
« no previous file with comments | « src/wasm/wasm-opcodes.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698