am 30f9b509: Merge "libdiskconfig: Use uintptr_t instead of uint32_t"
* commit '30f9b5092062a0c8b61356496128feaaf8cd4237': libdiskconfig: Use uintptr_t instead of uint32_t
This commit is contained in:
commit
3278af85f9
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum,
|
||||||
/* DO NOT DEREFERENCE */
|
/* DO NOT DEREFERENCE */
|
||||||
struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
|
struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
|
||||||
/* grab the offset in mbr where to write this partition entry. */
|
/* 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;
|
pentry = (struct pc_partition *) &item->data;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue