diff options
author | Gireesh Punathil <gpunathi@in.ibm.com> | 2019-02-12 10:38:13 +0300 |
---|---|---|
committer | Gireesh Punathil <gpunathi@in.ibm.com> | 2019-02-14 17:43:20 +0300 |
commit | e7f499681b98edc87deed3572a74f0c81bcfee1f (patch) | |
tree | 56da74a51f1462d0dacbd93add38f596e80d5069 /src/tracing | |
parent | 3f9beabe0551f22e6af8c5bfc9fbb7b12540d1ee (diff) |
src: use more stable cast where possible
PR-URL: https://github.com/nodejs/node/pull/26052
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/tracing')
-rw-r--r-- | src/tracing/node_trace_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracing/node_trace_buffer.cc b/src/tracing/node_trace_buffer.cc index 796c9f52928..d2cfd023665 100644 --- a/src/tracing/node_trace_buffer.cc +++ b/src/tracing/node_trace_buffer.cc @@ -160,7 +160,7 @@ bool NodeTraceBuffer::TryLoadAvailableBuffer() { // static void NodeTraceBuffer::NonBlockingFlushSignalCb(uv_async_t* signal) { - NodeTraceBuffer* buffer = reinterpret_cast<NodeTraceBuffer*>(signal->data); + NodeTraceBuffer* buffer = static_cast<NodeTraceBuffer*>(signal->data); if (buffer->buffer1_.IsFull() && !buffer->buffer1_.IsFlushing()) { buffer->buffer1_.Flush(false); } |