From 5f9d02f8396f090b406090427bb74a0997525ac1 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sun, 19 Jun 2011 09:05:20 +1000 Subject: [PATCH] get rid of compiler warning --- lib/libnfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libnfs.c b/lib/libnfs.c index e4a19a8..da47e85 100644 --- a/lib/libnfs.c +++ b/lib/libnfs.c @@ -855,7 +855,7 @@ static void nfs_pread_mcb(struct rpc_context *rpc _U_, int status, void *command data->error = 1; } else { memcpy(&data->buffer[mdata->offset], res->READ3res_u.resok.data.data_val, res->READ3res_u.resok.count); - if (data->max_offset < mdata->offset + res->READ3res_u.resok.count) { + if ((unsigned)data->max_offset < mdata->offset + res->READ3res_u.resok.count) { data->max_offset = mdata->offset + res->READ3res_u.resok.count; } } -- 2.34.1