Skip to content

Commit e81fbe4

Browse files
committed
client: Fix signed comparison warning
https://tracker.ceph.com/issues/68552 Signed-off-by: Adam Emerson <[email protected]>
1 parent c4730a9 commit e81fbe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/Client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10990,7 +10990,7 @@ int64_t Client::_read(Fh *f, int64_t offset, uint64_t size, bufferlist *bl,
1099010990
// C_Read_Sync_NonBlocking::finish().
1099110991

1099210992
// trim read based on file size?
10993-
if ((offset >= in->size) || (size == 0)) {
10993+
if (std::cmp_greater_equal(offset, in->size) || (size == 0)) {
1099410994
// read is requested at the EOF or the read len is zero, therefore just
1099510995
// release managed pointers and complete the C_Read_Finisher immediately with 0 bytes
1099610996

0 commit comments

Comments
 (0)