size_t is not necessarily an alias of uint64_t, so template argument
deduction would fail if we use `std::min(m_object_map.size(),
prev_object_diff_state_size)`. so better off using the same type for lhs
and rhs.
Signed-off-by: Kefu Chai <kchai@redhat.com>
m_object_map.resize(num_objs);
}
- size_t prev_object_diff_state_size = m_object_diff_state->size();
+ uint64_t prev_object_diff_state_size = m_object_diff_state->size();
if (prev_object_diff_state_size < num_objs) {
// the diff state should be the largest of all snapshots in the set
m_object_diff_state->resize(num_objs);