Zero-index the lookup tables and the code that references them.

This commit is contained in:
Jason S. Ninneman 2017-06-10 15:34:21 -07:00
parent e7906b4ca3
commit a4da53086b
4 changed files with 47 additions and 47 deletions

View file

@ -200,7 +200,7 @@ void MAPLIN(FILE *OPENED) {
LNLENG = 0;
for (size_t i = 1; i <= sizeof(INLINE) && INLINE[i] != 0; ++i)
{
char val = INLINE[i] + 1;
char val = INLINE[i];
INLINE[i] = ascii_to_advent[(unsigned)val];
if (INLINE[i] != 0)
LNLENG = i;