From: mikhail.naganov@gmail.com Date: Wed, 1 Jul 2009 09:11:33 +0000 (+0000) Subject: Fix presubmit error. X-Git-Tag: upstream/4.7.83~23772 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10489497c517790c6a033d7d6d418966a2d0027b;p=platform%2Fupstream%2Fv8.git Fix presubmit error. TBR=iposva@chromium.org Review URL: http://codereview.chromium.org/150158 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2316 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/platform-macos.cc b/src/platform-macos.cc index 6e79de2..880931e 100644 --- a/src/platform-macos.cc +++ b/src/platform-macos.cc @@ -513,10 +513,10 @@ class Sampler::PlatformData : public Malloced { #else #error Unsupported Mac OS X host architecture. #endif // V8_TARGET_ARCH_IA32 - if (KERN_SUCCESS == thread_get_state(profiled_thread_, - flavor, - (natural_t*)&state, - &count)) { + if (thread_get_state(profiled_thread_, + flavor, + reinterpret_cast(&state), + &count) == KERN_SUCCESS) { #if V8_HOST_ARCH_X64 UNIMPLEMENTED(); sample.pc = 0;