boot/efi/devices: fix warning for comparison signedness
Change-Id: I2a329c91d229a8672536ccdaa2c94db109390308 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4752 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
c5d81c2739
commit
e82b457883
@@ -137,7 +137,7 @@ device_contains_partition(EfiDevice *device, boot::Partition *partition)
|
||||
(gpt_table_header*)malloc(blockSize);
|
||||
ssize_t bytesRead = device->ReadAt(NULL, blockSize, deviceHeader,
|
||||
blockSize);
|
||||
if (bytesRead != blockSize)
|
||||
if (bytesRead != (ssize_t)blockSize)
|
||||
return false;
|
||||
|
||||
if (memcmp(deviceHeader, &header->TableHeader(),
|
||||
@@ -150,7 +150,7 @@ device_contains_partition(EfiDevice *device, boot::Partition *partition)
|
||||
gpt_partition_entry *entries = (gpt_partition_entry*)malloc(size);
|
||||
bytesRead = device->ReadAt(NULL,
|
||||
deviceHeader->entries_block * blockSize, entries, size);
|
||||
if (bytesRead != size)
|
||||
if (bytesRead != (ssize_t)size)
|
||||
return false;
|
||||
|
||||
if (memcmp(&entries[index], &header->EntryAt(index),
|
||||
|
||||
Reference in New Issue
Block a user