Mercurial > repos > blastem
comparison 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 |
comparison
equal
deleted
inserted
replaced
1951:8494fe8d6b65 | 1952:42c12d141f6e |
---|---|
673 continue; | 673 continue; |
674 } | 674 } |
675 *map = lock_info.map[i]; | 675 *map = lock_info.map[i]; |
676 if (map->start < 0x200000) { | 676 if (map->start < 0x200000) { |
677 if (map->buffer) { | 677 if (map->buffer) { |
678 map->buffer += (0x200000 - map->start) & ((map->flags & MMAP_AUX_BUFF) ? map->aux_mask : map->mask); | 678 uint8_t *buf = map->buffer; |
679 buf += (0x200000 - map->start) & ((map->flags & MMAP_AUX_BUFF) ? map->aux_mask : map->mask); | |
680 map->buffer = buf; | |
679 } | 681 } |
680 map->start = 0x200000; | 682 map->start = 0x200000; |
681 } | 683 } |
682 map++; | 684 map++; |
683 state->index++; | 685 state->index++; |