Index: runtime/vm/debugger_api_impl.cc |
diff --git a/runtime/vm/debugger_api_impl.cc b/runtime/vm/debugger_api_impl.cc |
index 5b1c8680b33e26d9c7ccdea871af7e3b8794a7c5..194861aef9adbe2124061a1c2bc111e072c5f457 100644 |
--- a/runtime/vm/debugger_api_impl.cc |
+++ b/runtime/vm/debugger_api_impl.cc |
@@ -982,7 +982,7 @@ DART_EXPORT Dart_Isolate Dart_GetIsolate(Dart_IsolateId isolate_id) { |
DART_EXPORT Dart_IsolateId Dart_GetIsolateId(Dart_Isolate dart_isolate) { |
- Isolate* isolate = reinterpret_cast<Isolate*>(dart_isolate); |
+ Isolate* isolate = Api::CastIsolate(dart_isolate); |
return isolate->debugger()->GetIsolateId(); |
} |