diff options
author | Michael Pavone <pavone@retrodev.com> | 2020-04-30 23:30:22 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2020-04-30 23:30:22 -0700 |
commit | e872964e6a147ef0e1f5a14913127660b6627a5e (patch) | |
tree | 2981c8c8a7a233bfd0d6836a661a7011cffcc582 /backend.c | |
parent | f6cf347dc78e3d7032dbd0b4aa9411bcccf34ac3 (diff) |
Remove usage of GCC pointer arithmetic on void * extension
Diffstat (limited to 'backend.c')
-rw-r--r-- | backend.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |