diff options
author | Michael Pavone <pavone@retrodev.com> | 2017-06-26 21:12:46 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2017-06-26 21:12:46 -0700 |
commit | b32870e8446662cc44fcb307373d17249119ad44 (patch) | |
tree | cc7bec9c6b297b5d3f69e6b6ed666981e37f0b85 /backend.c | |
parent | d0c3d89fc3232f4371f940245471826e5bbd1553 (diff) |
Fix a silly variable shadowing bug in read_word
Diffstat (limited to 'backend.c')
-rw-r--r-- | backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ uint16_t read_word(uint32_t address, void **mem_pointers, cpu_options *opts, voi uint16_t val; if ((chunk->flags & MMAP_ONLY_ODD) || (chunk->flags & MMAP_ONLY_EVEN)) { offset /= 2; - uint16_t val = base[offset]; + val = base[offset]; if (chunk->flags & MMAP_ONLY_ODD) { val |= 0xFF00; } else { |