summaryrefslogtreecommitdiff
path: root/src/node_report_utils.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-01-21 15:31:42 +0100
committerAnna Henningsen <anna@addaleax.net>2019-01-24 20:36:33 +0100
commit69ce113a7c793891cd1a4c7e0986a1bfb81b2f5b (patch)
tree475f28429a77b4add96ef9ce11de0d9bcf34a39a /src/node_report_utils.cc
parent6545197405610b75838760e2890f020139792928 (diff)
downloadnode-new-69ce113a7c793891cd1a4c7e0986a1bfb81b2f5b.tar.gz
report: downgrade reinterpret_cast to static_cast
PR-URL: https://github.com/nodejs/node/pull/25610 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/node_report_utils.cc')
-rw-r--r--src/node_report_utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_report_utils.cc b/src/node_report_utils.cc
index f09ee507d3..309cf81660 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<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,