Fix bug in test on Windows.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 27 Oct 2009 13:26:22 +0000 (13:26 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 27 Oct 2009 13:26:22 +0000 (13:26 +0000)
Review URL: http://codereview.chromium.org/335044

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3145 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

test/cctest/test-log-stack-tracer.cc

index 9905db82d8ef0fb7489568bcdb654f7b83b1c1ba..39f90647e35ee0b03ceda753e653d0ce25eed115 100644 (file)
@@ -336,7 +336,7 @@ static void CFuncDoTrace(byte dummy_parameter) {
 #elif defined _MSC_VER
   // Approximate a frame pointer address. We compile without base pointers,
   // so we can't trust ebp/rbp.
-  fp = &dummy_parameter - 2 * kPointerSize;
+  fp = &dummy_parameter - 2 * sizeof(void*);  // NOLINT
 #else
 #error Unexpected platform.
 #endif