From eec43351c44c0bec31a83e1a28be15e30722936a Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Sat, 6 Jul 2013 15:05:04 -0700 Subject: smalloc: revert change to use pointer indirection Better to compare fixed addresses than to use pointer indirection. --- src/smalloc.cc | 4 ++-- 1 file 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 wrapper) { -- cgit v1.2.1