From e872964e6a147ef0e1f5a14913127660b6627a5e Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Thu, 30 Apr 2020 23:30:22 -0700 Subject: Remove usage of GCC pointer arithmetic on void * extension --- romdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'romdb.c') diff --git a/romdb.c b/romdb.c index 210c4fd..473707b 100644 --- a/romdb.c +++ b/romdb.c @@ -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; } -- cgit v1.2.3