libdiskconfig: Use uintptr_t instead of uint32_t
Use uintptr_t instead of uint32_t when pointer is cast to an integer type. Change-Id: I03dd4c7ff66611661af466dfb7b393d461bb2d7d Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
This commit is contained in:
parent
532f465823
commit
35539affd8
|
@ -88,7 +88,7 @@ mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum,
|
|||
/* DO NOT DEREFERENCE */
|
||||
struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
|
||||
/* grab the offset in mbr where to write this partition entry. */
|
||||
item->offset = (loff_t)((uint32_t)((uint8_t *)(&mbr->ptable[pnum])));
|
||||
item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum])));
|
||||
}
|
||||
|
||||
pentry = (struct pc_partition *) &item->data;
|
||||
|
|
Loading…
Reference in New Issue