libfdisk: (gpt) cast number of entries [lgtm scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-09-20 15:40:14 +02:00
parent 7618b3be4b
commit 2815af9ed4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}