Mercurial > repos > blastem
diff backend.c @ 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 | b27d7bf1107e |
children | ded16f3d7eb4 1f745318f10a |
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 {