From 74656ca189202539c8805c832ca01dd8e7593cdd Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Thu, 23 Jan 2014 13:01:53 -0800 Subject: [PATCH] lint: use reinterpret_cast, not C-style casts --- src/tls_wrap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 8a23fccc88..45be55ced7 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -208,7 +208,7 @@ void TLSCallbacks::Receive(const FunctionCallbackInfo& args) { uv_stream_t* stream = wrap->wrap()->stream(); // Copy given buffer entirely or partiall if handle becomes closed - while (len > 0 && !uv_is_closing((uv_handle_t*) stream)) { + while (len > 0 && !uv_is_closing(reinterpret_cast(stream))) { wrap->DoAlloc(reinterpret_cast(stream), len, &buf); size_t copy = buf.len > len ? len : buf.len; memcpy(buf.base, data, copy);