diff --git a/src/node_report_utils.cc b/src/node_report_utils.cc index f09ee507d3aeb5..309cf8166051fa 100644 --- a/src/node_report_utils.cc +++ b/src/node_report_utils.cc @@ -107,7 +107,7 @@ void ReportPath(uv_handle_t* h, std::ostringstream& out) { void WalkHandle(uv_handle_t* h, void* arg) { std::string type; std::ostringstream data; - JSONWriter* writer = reinterpret_cast(arg); + JSONWriter* writer = static_cast(arg); uv_any_handle* handle = reinterpret_cast(h); // List all the types so we get a compile warning if we've missed one,