From 7ae1db2ba01acb038f894d9659061ac9eec74bdb Mon Sep 17 00:00:00 2001 From: Jianpeng Ma Date: Tue, 7 Jun 2016 07:42:28 +0800 Subject: [PATCH] os/bluestore/BitAllocator: fix compiler warning. Signed-off-by: Jianpeng Ma --- src/os/bluestore/BitAllocator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/os/bluestore/BitAllocator.h b/src/os/bluestore/BitAllocator.h index 409dc90f40d..d3192b34ae7 100644 --- a/src/os/bluestore/BitAllocator.h +++ b/src/os/bluestore/BitAllocator.h @@ -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]; }