diff options
author | Aliaksey Kandratsenka <alk@tut.by> | 2013-11-16 14:00:19 -0800 |
---|---|---|
committer | Aliaksey Kandratsenka <alk@tut.by> | 2013-11-16 14:00:19 -0800 |
commit | d4f4c5a3104e30b14b1090241fb4d0fac6a0e357 (patch) | |
tree | 9f744e651fde759696452759eaff64fbe53de592 | |
parent | 946203d60e50488a0b9e0fe003c13662873fa17d (diff) | |
download | gperftools-d4f4c5a3104e30b14b1090241fb4d0fac6a0e357.tar.gz |
assert that ClassSize(0) is 0 instead >=0
Because it's return value being size_t cannot be negative
anyways. This fixes clang warning
-rw-r--r-- | src/common.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.cc b/src/common.cc index bd4f6ed..8269fb3 100644 --- a/src/common.cc +++ b/src/common.cc @@ -122,7 +122,7 @@ void SizeMap::Init() { InitTCMallocTransferNumObjects(); // Do some sanity checking on add_amount[]/shift_amount[]/class_array[] - if (ClassIndex(0) < 0) { + if (ClassIndex(0) != 0) { Log(kCrash, __FILE__, __LINE__, "Invalid class index for size 0", ClassIndex(0)); } |