From 0c186096bb9534165394046fd8dd914e1be44094 Mon Sep 17 00:00:00 2001 From: Joao Eduardo Luis Date: Tue, 29 Oct 2013 20:36:05 +0000 Subject: [PATCH] mon: OSDMonitor: fix comparison between signed and unsigned integer warning Signed-off-by: Joao Eduardo Luis --- src/mon/OSDMonitor.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.47.3