summaryrefslogtreecommitdiff
path: root/backend.c
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2017-06-26 21:12:46 -0700
committerMichael Pavone <pavone@retrodev.com>2017-06-26 21:12:46 -0700
commitb32870e8446662cc44fcb307373d17249119ad44 (patch)
treecc7bec9c6b297b5d3f69e6b6ed666981e37f0b85 /backend.c
parentd0c3d89fc3232f4371f940245471826e5bbd1553 (diff)
Fix a silly variable shadowing bug in read_word
Diffstat (limited to 'backend.c')
-rw-r--r--backend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend.c b/backend.c
index ea5b64f..08601da 100644
--- a/backend.c
+++ b/backend.c
@@ -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 {