From: Adam Emerson Date: Wed, 27 Nov 2024 22:17:14 +0000 (-0500) Subject: client: Fix signed comparison warning X-Git-Tag: testing/wip-vshankar-testing-20250115.164543-debug~6^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e81fbe4ebf9e8aa977409bcf84f2694ea0333ff1;p=ceph-ci.git client: Fix signed comparison warning https://tracker.ceph.com/issues/68552 Signed-off-by: Adam Emerson --- diff --git a/src/client/Client.cc b/src/client/Client.cc index 00b85a8e746..5026da400d7 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -10990,7 +10990,7 @@ retry: // C_Read_Sync_NonBlocking::finish(). // trim read based on file size? - if ((offset >= in->size) || (size == 0)) { + if (std::cmp_greater_equal(offset, in->size) || (size == 0)) { // read is requested at the EOF or the read len is zero, therefore just // release managed pointers and complete the C_Read_Finisher immediately with 0 bytes