Skip to content

Commit

Permalink
report: downgrade reinterpret_cast to static_cast
Browse files Browse the repository at this point in the history
PR-URL: #25610
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
addaleax committed Jan 24, 2019
1 parent 07a0dc8 commit 03ba344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_report_utils.cc
Expand Up @@ -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<JSONWriter*>(arg);
JSONWriter* writer = static_cast<JSONWriter*>(arg);
uv_any_handle* handle = reinterpret_cast<uv_any_handle*>(h);

// List all the types so we get a compile warning if we've missed one,
Expand Down

0 comments on commit 03ba344

Please sign in to comment.