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 88a1a442fb006721140ecaf154215f304b7a520d..dacfbf5313bd2b08f9efa0a6edfdf9c63fcfb6ef 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -2407,8 +2407,9 @@ WASM_EXEC_TEST(SimpleCallIndirect) { |
module.AddSignature(sigs.d_dd()); |
// Function table. |
- int table[] = {0, 1}; |
- module.AddIndirectFunctionTable(table, 2); |
+ uint16_t indirect_function_table[] = {0, 1}; |
+ module.AddIndirectFunctionTable(indirect_function_table, |
+ arraysize(indirect_function_table)); |
module.PopulateIndirectFunctionTable(); |
// Builder the caller function. |
@@ -2438,8 +2439,9 @@ WASM_EXEC_TEST(MultipleCallIndirect) { |
module.AddSignature(sigs.d_dd()); |
// Function table. |
- int table[] = {0, 1}; |
- module.AddIndirectFunctionTable(table, 2); |
+ uint16_t indirect_function_table[] = {0, 1}; |
+ module.AddIndirectFunctionTable(indirect_function_table, |
+ arraysize(indirect_function_table)); |
module.PopulateIndirectFunctionTable(); |
// Builder the caller function. |