Corrected instruction counter for printCodeQueue()

This commit is contained in:
Tristan B. Velloza Kildaire 2021-10-27 09:25:11 +02:00
parent 9613fcf81d
commit 7ffbd6f50e
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ public final class TypeChecker
ulong i = 0;
foreach(Instruction instruction; codeQueue)
{
gprintln(to!(string)(i)~"/"~to!(string)(walkLength(codeQueue[]))~": "~instruction.toString());
gprintln(to!(string)(i+1)~"/"~to!(string)(walkLength(codeQueue[]))~": "~instruction.toString());
i++;
}
}