devfs: casts as size_t before comparing.

* error: comparison between signed and unsigned integer expressions.
This commit is contained in:
Jérôme Duval 2013-04-26 19:59:30 +02:00
parent 8b9c0710cd
commit 848acd672c

View File

@ -487,7 +487,7 @@ translate_partition_access(devfs_partition* partition, off_t& offset,
ASSERT(offset >= 0);
ASSERT(offset < partition->info.size);
size = min_c(size, partition->info.size - offset);
size = min_c(size, (size_t)(partition->info.size - offset));
offset += partition->info.offset;
}