]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
client: Fix signed comparison warning
authorAdam Emerson <aemerson@redhat.com>
Wed, 27 Nov 2024 22:17:14 +0000 (17:17 -0500)
committerAdam Emerson <aemerson@redhat.com>
Fri, 10 Jan 2025 21:42:19 +0000 (16:42 -0500)
https://tracker.ceph.com/issues/68552

Signed-off-by: Adam Emerson <aemerson@redhat.com>
src/client/Client.cc

index 00b85a8e746dfdb663ffb9c1cfa86430fa497b78..5026da400d7d13d7efb006d48bb97aba4b3a8fca 100644 (file)
@@ -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