Index: test/cctest/test-code-stubs-x64.cc |
diff --git a/test/cctest/test-code-stubs-x64.cc b/test/cctest/test-code-stubs-x64.cc |
index 0bffb87fef03fda8e88e27c7587ed4656897152e..4af5b45d7c62135119a37b7825003f538647fd4a 100644 |
--- a/test/cctest/test-code-stubs-x64.cc |
+++ b/test/cctest/test-code-stubs-x64.cc |
@@ -138,8 +138,8 @@ TEST(ConvertDToI) { |
Register source_registers[] = {rsp, rax, rbx, rcx, rdx, rsi, rdi, r8, r9}; |
Register dest_registers[] = {rax, rbx, rcx, rdx, rsi, rdi, r8, r9}; |
- for (size_t s = 0; s < sizeof(*source_registers); s++) { |
- for (size_t d = 0; d < sizeof(*dest_registers); d++) { |
+ for (size_t s = 0; s < sizeof(source_registers) / sizeof(Register); s++) { |
+ for (size_t d = 0; d < sizeof(dest_registers) / sizeof(Register); d++) { |
RunAllTruncationTests( |
MakeConvertDToIFuncTrampoline(isolate, |
source_registers[s], |