mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
os/bluestore/BitAllocator: fix compiler warning.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
This commit is contained in:
parent
fca97f8619
commit
7ae1db2ba0
@ -105,20 +105,20 @@ public:
|
||||
}
|
||||
m_cur_idx++;
|
||||
|
||||
if (m_cur_idx == m_list->size() &&
|
||||
if (m_cur_idx == (int64_t)m_list->size() &&
|
||||
m_wrap) {
|
||||
m_cur_idx %= m_list->size();
|
||||
m_wrapped = true;
|
||||
}
|
||||
|
||||
if (cur_idx == m_list->size()) {
|
||||
if (cur_idx == (int64_t)m_list->size()) {
|
||||
/*
|
||||
* End of list
|
||||
*/
|
||||
return NULL;
|
||||
}
|
||||
|
||||
debug_assert(cur_idx < m_list->size());
|
||||
debug_assert(cur_idx < (int64_t)m_list->size());
|
||||
return &(*m_list)[cur_idx];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user