diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-07-06 15:05:04 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-07-06 15:05:04 -0700 |
commit | eec43351c44c0bec31a83e1a28be15e30722936a (patch) | |
tree | 4815cc2f4c3d2c161c9afb17ef315d6a370636e2 | |
parent | f0a05e4bc39beb1a15b34dfe906fed3be37c5ac8 (diff) | |
download | node-eec43351c44c0bec31a83e1a28be15e30722936a.tar.gz |
smalloc: revert change to use pointer indirection
Better to compare fixed addresses than to use pointer indirection.
-rw-r--r-- | src/smalloc.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/smalloc.cc b/src/smalloc.cc index 13afd279c..ca5e88dcc 100644 --- a/src/smalloc.cc +++ b/src/smalloc.cc @@ -255,13 +255,13 @@ class RetainedAllocInfo: public RetainedObjectInfo { virtual intptr_t GetSizeInBytes(); private: - static const char* label_; + static const char label_[]; char* data_; int length_; }; -const char* RetainedAllocInfo::label_ = "smalloc"; +const char RetainedAllocInfo::label_[] = "smalloc"; RetainedAllocInfo::RetainedAllocInfo(Handle<Value> wrapper) { |