Chromium Code Reviews| 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..9cfe175ff70147087b545de651ffed7c1dba7d70 100644 |
| --- a/test/cctest/wasm/test-run-wasm.cc |
| +++ b/test/cctest/wasm/test-run-wasm.cc |
| @@ -2407,7 +2407,7 @@ WASM_EXEC_TEST(SimpleCallIndirect) { |
| module.AddSignature(sigs.d_dd()); |
| // Function table. |
| - int table[] = {0, 1}; |
| + uint16_t table[] = {0, 1}; |
| module.AddIndirectFunctionTable(table, 2); |
|
ahaas
2016/07/25 19:23:45
could you use arraysize(table) here instead of the
ddchen
2016/07/25 22:17:36
Done.
|
| module.PopulateIndirectFunctionTable(); |
| @@ -2438,7 +2438,7 @@ WASM_EXEC_TEST(MultipleCallIndirect) { |
| module.AddSignature(sigs.d_dd()); |
| // Function table. |
| - int table[] = {0, 1}; |
| + uint16_t table[] = {0, 1}; |
| module.AddIndirectFunctionTable(table, 2); |
|
ahaas
2016/07/25 19:23:45
same here.
ddchen
2016/07/25 22:17:36
Done.
|
| module.PopulateIndirectFunctionTable(); |