Mercurial > repos > blastem
diff romdb.c @ 1952:42c12d141f6e
Remove usage of GCC pointer arithmetic on void * extension
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Thu, 30 Apr 2020 23:30:22 -0700 |
parents | 6ece1e2c7a15 |
children | 0f54a898db03 |
line wrap: on
line diff
--- a/romdb.c Thu Apr 30 23:21:23 2020 -0700 +++ b/romdb.c Thu Apr 30 23:30:22 2020 -0700 @@ -675,7 +675,9 @@ *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; }