Repository: incubator-mynewt-core Updated Branches: refs/heads/develop e80d022ea -> e5b7d4765
bootutil - Fix warning on 64-bit architectures. Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/e5b7d476 Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/e5b7d476 Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/e5b7d476 Branch: refs/heads/develop Commit: e5b7d47654c6ca697a8efeda173f0469f22c8f64 Parents: e80d022 Author: Christopher Collins <[email protected]> Authored: Wed Jan 11 12:19:37 2017 -0800 Committer: Christopher Collins <[email protected]> Committed: Wed Jan 11 12:19:37 2017 -0800 ---------------------------------------------------------------------- boot/bootutil/src/loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/e5b7d476/boot/bootutil/src/loader.c ---------------------------------------------------------------------- diff --git a/boot/bootutil/src/loader.c b/boot/bootutil/src/loader.c index fc20fdb..f473c90 100644 --- a/boot/bootutil/src/loader.c +++ b/boot/bootutil/src/loader.c @@ -1081,7 +1081,7 @@ split_go(int loader_slot, int split_slot, void **entry) const struct flash_area *loader_fap; const struct flash_area *app_fap; struct flash_area *sectors; - uint32_t entry_val; + uintptr_t entry_val; int loader_flash_id; int app_flash_id; int rc; @@ -1138,7 +1138,7 @@ split_go(int loader_slot, int split_slot, void **entry) entry_val = boot_data.imgs[split_slot].sectors[0].fa_off + boot_data.imgs[split_slot].hdr.ih_hdr_size; - *entry = (void*) entry_val; + *entry = (void *) entry_val; rc = SPLIT_GO_OK; done:
