diff --git a/table/block.cc b/table/block.cc index ff33d25..81a0a74 100644 --- a/table/block.cc +++ b/table/block.cc @@ -268,7 +268,8 @@ class Block::Iter : public Iterator { uint32_t shared, non_shared, value_length; p = DecodeEntry(p, limit, &shared, &non_shared, &value_length); if (p == nullptr || key_.size() < shared || - (comparator_->IsInternal() && shared + non_shared < 8)) { + (comparator_->IsInternal() && + static_cast(shared) + non_shared < 8)) { CorruptionError(); return false; } else {