]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore/BitAllocator: fix compiler warning. 9370/head
authorJianpeng Ma <jianpeng.ma@intel.com>
Mon, 6 Jun 2016 23:42:28 +0000 (07:42 +0800)
committerJianpeng Ma <jianpeng.ma@intel.com>
Mon, 6 Jun 2016 23:42:28 +0000 (07:42 +0800)
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
src/os/bluestore/BitAllocator.h

index 409dc90f40d343a410a06f8c8542f0351b8ccb7b..d3192b34ae7760adbd3e4743fb9b7d081bc28928 100644 (file)
@@ -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];
   }