diff options
Diffstat (limited to 'cpu-common.h')
-rw-r--r-- | cpu-common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu-common.h b/cpu-common.h index a40c57dc1f..dca5175652 100644 --- a/cpu-common.h +++ b/cpu-common.h @@ -28,9 +28,9 @@ typedef uint64_t ram_addr_t; # define RAM_ADDR_MAX UINT64_MAX # define RAM_ADDR_FMT "%" PRIx64 #else -typedef unsigned long ram_addr_t; -# define RAM_ADDR_MAX ULONG_MAX -# define RAM_ADDR_FMT "%lx" +typedef uintptr_t ram_addr_t; +# define RAM_ADDR_MAX UINTPTR_MAX +# define RAM_ADDR_FMT "%" PRIxPTR #endif /* memory API */ |