Fix for 64-bit machine (emulation).

This commit is contained in:
NIIBE Yutaka
2017-09-29 14:15:48 +09:00
parent 7004453669
commit 547e263d6b
4 changed files with 16 additions and 9 deletions

View File

@@ -1216,7 +1216,7 @@ modify_binary (uint8_t op, uint8_t p1, uint8_t p2, int len)
if (i == 4) /* all update keys are removed */
{
p = gpg_get_firmware_update_key (0);
flash_erase_page ((uint32_t)p);
flash_erase_page ((uintptr_t)p);
}
}