diff options
author | Furquan Shaikh <furquan@google.com> | 2014-11-12 16:19:37 -0800 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-04-10 12:01:41 +0200 |
commit | fd2f03054317d782cbc25b897b669a2dbe108f42 (patch) | |
tree | 977d44f5afa1e61077babfe02d8c4f3b217f0198 | |
parent | 0179fcfaab2fdbff0da00bf76be08e913d5a0f47 (diff) |
elog: Fix typecast issues related to 64-bit compilation.
BUG=chrome-os-partner:33764
BRANCH=None
TEST=Compiles successfully for ryu and nyan.
Change-Id: I036fd42d5cd4b71bcb68eea0fdd9a4e1aa4711e9
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 7c3db3d5c8e00b6c273ae240da137062597749aa
Original-Change-Id: I5e38966fe06aa3302a7c1b536f5ffd8bb22d4947
Original-Signed-off-by: Furquan Shaikh <furquan@google.com>
Original-Reviewed-on: https://chromium-review.googlesource.com/229413
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Commit-Queue: Furquan Shaikh <furquan@chromium.org>
Original-Tested-by: Furquan Shaikh <furquan@chromium.org>
Reviewed-on: http://review.coreboot.org/9424
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
-rw-r--r-- | src/drivers/elog/elog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/elog/elog.c b/src/drivers/elog/elog.c index 8bc8a0753a..c96a923b93 100644 --- a/src/drivers/elog/elog.c +++ b/src/drivers/elog/elog.c @@ -108,7 +108,7 @@ static inline u32 elog_flash_address_to_offset(u8 *address) return (u32)address - ((u32)~0UL - rom_size + 1); #else - return (u32)address; + return (u32)(uintptr_t)address; #endif } |