Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(468)

Unified Diff: src/platform-macos.cc

Issue 150158: Fix presubmit error. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform-macos.cc
diff --git a/src/platform-macos.cc b/src/platform-macos.cc
index 6e79de2095f8a4d591ecbed3bf874f63c33bbee5..880931e048b3a9a8a417b6441fbadea6995d75cc 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<natural_t*>(&state),
+ &count) == KERN_SUCCESS) {
#if V8_HOST_ARCH_X64
UNIMPLEMENTED();
sample.pc = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698