diff mbox series

[18/25] libnfs.c: fix sign conflict compile warning

Message ID 20220209222610.438470-19-mcgrof@kernel.org (mailing list archive)
State New, archived
Headers show
Series dbench: fix compile warnings and update a bit | expand

Commit Message

Luis Chamberlain Feb. 9, 2022, 10:26 p.m. UTC
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---
 libnfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libnfs.c b/libnfs.c
index 50f914e..82e88f9 100644
--- a/libnfs.c
+++ b/libnfs.c
@@ -853,10 +853,10 @@  nfsstat3 nfsio_read(struct nfsio *nfsio, const char *name, char *buf, uint64_t o
 		goto finished;
 	}
 
-	if (offset >= size && size > 0) {
+	if (offset >= (uint64_t) size && (uint64_t) size > 0) {
 		offset = offset % size;
  	}
-	if (offset+len >= size) {
+	if (offset+len >= (uint64_t) size) {
 		offset = 0;
 	}