summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libdiskconfig/config_mbr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskconfig/config_mbr.c b/libdiskconfig/config_mbr.c
index b89d382be..7641b29e2 100644
--- a/libdiskconfig/config_mbr.c
+++ b/libdiskconfig/config_mbr.c
@@ -88,7 +88,7 @@ mk_pri_pentry(struct disk_info *dinfo, struct part_info *pinfo, int pnum,
88 /* DO NOT DEREFERENCE */ 88 /* DO NOT DEREFERENCE */
89 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET; 89 struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
90 /* grab the offset in mbr where to write this partition entry. */ 90 /* grab the offset in mbr where to write this partition entry. */
91 item->offset = (loff_t)((uint32_t)((uint8_t *)(&mbr->ptable[pnum]))); 91 item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->ptable[pnum])));
92 } 92 }
93 93
94 pentry = (struct pc_partition *) &item->data; 94 pentry = (struct pc_partition *) &item->data;