projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f78e5df
)
lint: use reinterpret_cast, not C-style casts
author
Trevor Norris
<trev.norris@gmail.com>
Thu, 23 Jan 2014 21:01:53 +0000
(13:01 -0800)
committer
Trevor Norris
<trev.norris@gmail.com>
Thu, 23 Jan 2014 21:01:53 +0000
(13:01 -0800)
src/tls_wrap.cc
patch
|
blob
|
history
diff --git
a/src/tls_wrap.cc
b/src/tls_wrap.cc
index 8a23fccc88d208a940c6e11a7c46ad86f5b031d2..45be55ced7c3dc6059b6b9c0a5bc866c86581046 100644
(file)
--- a/
src/tls_wrap.cc
+++ b/
src/tls_wrap.cc
@@
-208,7
+208,7
@@
void TLSCallbacks::Receive(const FunctionCallbackInfo<Value>& 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<uv_handle_t*>(stream)
)) {
wrap->DoAlloc(reinterpret_cast<uv_handle_t*>(stream), len, &buf);
size_t copy = buf.len > len ? len : buf.len;
memcpy(buf.base, data, copy);