From d486d466c8e6efb85eeb7bd84d486f29bd385ed0 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Sat, 31 Dec 2011 10:28:34 +1100 Subject: [PATCH] Cast an expression to get rid of a compiler warning --- lib/scsi-lowlevel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/scsi-lowlevel.c b/lib/scsi-lowlevel.c index eb45d88..33541ab 100644 --- a/lib/scsi-lowlevel.c +++ b/lib/scsi-lowlevel.c @@ -1131,7 +1131,7 @@ scsi_task_get_data_in_buffer(struct scsi_task *task, uint32_t pos, ssize_t *coun } } - if (count && *count > sdb->len - pos) { + if (count && *count > (ssize_t)(sdb->len - pos)) { *count = sdb->len - pos; }