Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28354014 authored by JP Abgrall's avatar JP Abgrall
Browse files

libdiskconfig: fix build (bad type in offset calculation)



Change-Id: I1acc490943f961a039acd3d40db825069b725abb
Signed-off-by: default avatarJP Abgrall <jpa@google.com>
parent 5e0db828
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ mk_mbr_sig()
        /* DO NOT DEREFERENCE */
        struct pc_boot_record *mbr = (void *)PC_MBR_DISK_OFFSET;
        /* grab the offset in mbr where to write mbr signature. */
        item->offset = (loff_t)((uint32_t)((uint8_t *)(&mbr->mbr_sig)));
        item->offset = (loff_t)((uintptr_t)((uint8_t *)(&mbr->mbr_sig)));
    }

    *((uint16_t*)item->data) = PC_BIOS_BOOT_SIG;