summaryrefslogtreecommitdiff
path: root/src/node_buffer.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-01-05 00:11:37 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-01-05 00:16:23 +0100
commit5664dd2fc1e872a850c2891ee11f86e98b69106d (patch)
tree08aa82d946069d1ab25ccf6ea00fa745515d52a3 /src/node_buffer.h
parent2b6c561040cb6528e1f23b88cd36be47448e1ccf (diff)
downloadnode-new-5664dd2fc1e872a850c2891ee11f86e98b69106d.tar.gz
src: use static_cast where appropriate
Use static_cast instead of reinterpret_cast when casting from void* to another type. This is mostly an aesthetic change but may help catch bugs when the affected code is modified.
Diffstat (limited to 'src/node_buffer.h')
-rw-r--r--src/node_buffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_buffer.h b/src/node_buffer.h
index 137a6cfb40..f3d9dd4681 100644
--- a/src/node_buffer.h
+++ b/src/node_buffer.h
@@ -75,7 +75,7 @@ class NODE_EXTERN Buffer: public ObjectWrap {
static inline char* Data(v8::Handle<v8::Value> val) {
assert(val->IsObject());
void* data = val.As<v8::Object>()->GetIndexedPropertiesExternalArrayData();
- return reinterpret_cast<char*>(data);
+ return static_cast<char*>(data);
}
static inline char* Data(Buffer *b) {