devfs: casts as size_t before comparing.
* error: comparison between signed and unsigned integer expressions.
This commit is contained in:
@@ -487,7 +487,7 @@ translate_partition_access(devfs_partition* partition, off_t& offset,
|
|||||||
ASSERT(offset >= 0);
|
ASSERT(offset >= 0);
|
||||||
ASSERT(offset < partition->info.size);
|
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;
|
offset += partition->info.offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user