diff options
Diffstat (limited to 'common/shared_mem.c')
-rw-r--r-- | common/shared_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/shared_mem.c b/common/shared_mem.c index 7ccf18c4b7..219019ef62 100644 --- a/common/shared_mem.c +++ b/common/shared_mem.c @@ -22,7 +22,7 @@ int shared_mem_size(void) * allocated from the start of RAM, so we can use everything up to the * jump data at the end of RAM. */ - return system_usable_ram_end() - (uint32_t)__shared_mem_buf; + return system_usable_ram_end() - (uintptr_t)__shared_mem_buf; } int shared_mem_acquire(int size, char **dest_ptr) |