Cast an expression to get rid of a compiler warning

This commit is contained in:
Ronnie Sahlberg
2011-12-31 10:28:34 +11:00
parent f4223d96c7
commit d486d466c8

View File

@@ -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;
}