mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: use 64bit arithmentic
This commit is contained in:
parent
1363a5ffb2
commit
ea4daeb28e
@ -611,7 +611,7 @@ static int _has_gpt_partition_table(struct device *dev)
|
|||||||
sz_entry = le32_to_cpu(gpt_header.sz_part_entry);
|
sz_entry = le32_to_cpu(gpt_header.sz_part_entry);
|
||||||
|
|
||||||
for (i = 0; i < nr_entries; i++) {
|
for (i = 0; i < nr_entries; i++) {
|
||||||
if (!dev_read_bytes(dev, entries_start + i * sz_entry,
|
if (!dev_read_bytes(dev, entries_start + (uint64_t)i * sz_entry,
|
||||||
sizeof(gpt_part_entry), &gpt_part_entry))
|
sizeof(gpt_part_entry), &gpt_part_entry))
|
||||||
return_0;
|
return_0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user