changeset 1419:92e7dafcc0dc

Fix a silly variable shadowing bug in read_word
author Michael Pavone <pavone@retrodev.com>
date Mon, 26 Jun 2017 21:12:46 -0700
parents 62ec8be376be
children 975b5b7eaa77
files backend.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend.c	Mon Jun 26 09:38:41 2017 -0700
+++ b/backend.c	Mon Jun 26 21:12:46 2017 -0700
@@ -111,7 +111,7 @@
 			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 {