summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/drivers/elog/elog.c2
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
}