From: Joao Eduardo Luis Date: Tue, 29 Oct 2013 20:36:05 +0000 (+0000) Subject: mon: OSDMonitor: fix comparison between signed and unsigned integer warning X-Git-Tag: v0.73~58^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0c186096bb9534165394046fd8dd914e1be44094;p=ceph.git mon: OSDMonitor: fix comparison between signed and unsigned integer warning Signed-off-by: Joao Eduardo Luis --- diff --git a/src/mon/OSDMonitor.cc b/src/mon/OSDMonitor.cc index 7b4adc4624f1..27a336fd3b76 100644 --- a/src/mon/OSDMonitor.cc +++ b/src/mon/OSDMonitor.cc @@ -4365,7 +4365,7 @@ int OSDMonitor::_prepare_rename_pool(uint64_t pool, string newname) for (map::iterator p = pending_inc.new_pool_names.begin(); p != pending_inc.new_pool_names.end(); ++p) { - if (p->second == newname && p->first != pool) { + if (p->second == newname && (uint64_t)p->first != pool) { return -EEXIST; } }