From e7f499681b98edc87deed3572a74f0c81bcfee1f Mon Sep 17 00:00:00 2001 From: Gireesh Punathil Date: Tue, 12 Feb 2019 02:38:13 -0500 Subject: [PATCH] src: use more stable cast where possible PR-URL: https://github.com/nodejs/node/pull/26052 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Anto Aravinth Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau --- src/tracing/node_trace_buffer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracing/node_trace_buffer.cc b/src/tracing/node_trace_buffer.cc index 796c9f529288e5..d2cfd02366583b 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(signal->data); + NodeTraceBuffer* buffer = static_cast(signal->data); if (buffer->buffer1_.IsFull() && !buffer->buffer1_.IsFlushing()) { buffer->buffer1_.Flush(false); }