summaryrefslogtreecommitdiff
path: root/backend.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2020-04-30 23:30:22 -0700
committerMichael Pavone <pavone@retrodev.com>2020-04-30 23:30:22 -0700
commite872964e6a147ef0e1f5a14913127660b6627a5e (patch)
tree2981c8c8a7a233bfd0d6836a661a7011cffcc582 /backend.c
parentf6cf347dc78e3d7032dbd0b4aa9411bcccf34ac3 (diff)
Remove usage of GCC pointer arithmetic on void * extension
Diffstat (limited to 'backend.c')
-rw-r--r--backend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend.c b/backend.c
index 4629c16..595e9da 100644
--- a/backend.c
+++ b/backend.c
@@ -83,7 +83,7 @@ void * get_native_pointer(uint32_t address, void ** mem_pointers, cpu_options *
: memmap[chunk].buffer;
if (!base) {
if (memmap[chunk].flags & MMAP_AUX_BUFF) {
- return memmap[chunk].buffer + (address & memmap[chunk].aux_mask);
+ return ((uint8_t *)memmap[chunk].buffer) + (address & memmap[chunk].aux_mask);
}
return NULL;
}
@@ -108,7 +108,7 @@ void * get_native_write_pointer(uint32_t address, void ** mem_pointers, cpu_opti
: memmap[chunk].buffer;
if (!base) {
if (memmap[chunk].flags & MMAP_AUX_BUFF) {
- return memmap[chunk].buffer + (address & memmap[chunk].aux_mask);
+ return ((uint8_t *)memmap[chunk].buffer) + (address & memmap[chunk].aux_mask);
}
return NULL;
}