get rid of compiler warning
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 18 Jun 2011 23:05:20 +0000 (09:05 +1000)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Sat, 18 Jun 2011 23:05:20 +0000 (09:05 +1000)
lib/libnfs.c

index e4a19a853d52e52a0ed40074790179237e887275..da47e858b78fbd4f23e370a3e6c847f12e9a4c0b 100644 (file)
@@ -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;
                        }
                }