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 <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
  • 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
Original file line number Diff line number Diff line change
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.