From 2dcfe21416194d5390f6ecc84afd0eb5d90097ff Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 5 Apr 2011 14:38:48 -0700 Subject: [PATCH] osd: fix signed/unsigned comp warning: osd/ReplicatedPG.cc:1208: comparison between signed and unsigned integer expressions Signed-off-by: Sage Weil --- src/osd/ReplicatedPG.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ReplicatedPG.cc b/src/osd/ReplicatedPG.cc index c49bebfae35f4..7c82b882d10a6 100644 --- a/src/osd/ReplicatedPG.cc +++ b/src/osd/ReplicatedPG.cc @@ -1205,7 +1205,7 @@ int ReplicatedPG::do_osd_ops(OpContext *ctx, vector& ops, struct stat st; memset(&st, 0, sizeof(st)); result = osd->store->stat(coll, soid, &st); - if (result || st.st_size != oi.size) { + if (result || (uint64_t)st.st_size != oi.size) { osd->clog.error() << info.pgid << " " << soid << " oi.size " << oi.size << " but stat got " << result << " size " << st.st_size << "\n"; assert(0 == "oi disagrees with stat"); -- 2.39.5