diff --git a/table/block.cc b/table/block.cc index 92b28776dd3299b3d4041187d71abdfd1488f2e1..c20bb38ce9a9e5e8a72cb56dcbcdc06acc75880f 100644 --- a/table/block.cc +++ b/table/block.cc @@ -62,7 +62,7 @@ static inline const char* DecodeEntry(const char* p, const char* limit, if ((p = GetVarint32Ptr(p, limit, value_length)) == NULL) return NULL; } - if (static_cast(limit - p) < (*non_shared + *value_length)) { + if (static_cast(limit - p) < (*non_shared + *value_length)) { return NULL; } return p;