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..b53136e8d5aa05272b77720452a3ab1900d4d5dc 100644 |
--- a/test/cctest/wasm/test-run-wasm.cc |
+++ b/test/cctest/wasm/test-run-wasm.cc |
@@ -2407,8 +2407,8 @@ WASM_EXEC_TEST(SimpleCallIndirect) { |
module.AddSignature(sigs.d_dd()); |
// Function table. |
- int table[] = {0, 1}; |
- module.AddIndirectFunctionTable(table, 2); |
+ uint16_t table[] = {0, 1}; |
+ module.AddIndirectFunctionTable(table, arraysize(table)); |
Mircea Trofin
2016/07/26 03:37:27
rename to "indirect_function_table" for clarity
ddchen
2016/07/26 05:44:44
Done.
|
module.PopulateIndirectFunctionTable(); |
// Builder the caller function. |
@@ -2438,8 +2438,8 @@ WASM_EXEC_TEST(MultipleCallIndirect) { |
module.AddSignature(sigs.d_dd()); |
// Function table. |
- int table[] = {0, 1}; |
- module.AddIndirectFunctionTable(table, 2); |
+ uint16_t table[] = {0, 1}; |
Mircea Trofin
2016/07/26 03:37:27
"indirect_function_table"
ddchen
2016/07/26 05:44:44
Done.
|
+ module.AddIndirectFunctionTable(table, arraysize(table)); |
module.PopulateIndirectFunctionTable(); |
// Builder the caller function. |