diff --git a/src/main.cpp b/src/main.cpp index 2a2ac4a..c98eee9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1851,9 +1851,8 @@ vector parser(vector> in) { if (processingFunction) { functions[procFnName].localLabels[i.substr(1)] = functionInstructionIndex; } else { - labels[i.substr(1)] = lineNum; + labels[i.substr(1)] = lineNum - 1; } - continue; } else if (i == "stdin") newInst.inst = Instructions::Stdin; else if (i == "stdout") newInst.inst = Instructions::Stdout;