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 /romdb.c | |
parent | f6cf347dc78e3d7032dbd0b4aa9411bcccf34ac3 (diff) |
Remove usage of GCC pointer arithmetic on void * extension
Diffstat (limited to 'romdb.c')
-rw-r--r-- | romdb.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -675,7 +675,9 @@ void map_iter_fun(char *key, tern_val val, uint8_t valtype, void *data) *map = lock_info.map[i]; if (map->start < 0x200000) { if (map->buffer) { - map->buffer += (0x200000 - map->start) & ((map->flags & MMAP_AUX_BUFF) ? map->aux_mask : map->mask); + uint8_t *buf = map->buffer; + buf += (0x200000 - map->start) & ((map->flags & MMAP_AUX_BUFF) ? map->aux_mask : map->mask); + map->buffer = buf; } map->start = 0x200000; } |