libfdisk: (gpt) cast number of entries [lgtm scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
7618b3be4b
commit
2815af9ed4
|
@ -508,7 +508,7 @@ static inline int gpt_calculate_sizeof_ents(struct gpt_header *hdr, uint32_t nen
|
|||
return -ERANGE;
|
||||
}
|
||||
|
||||
*sz = nents * esz;
|
||||
*sz = (size_t) nents * esz;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue