Browse Source

Throw an error only if this is not the end of tokens stream.

release/v0.1
Rafal Kupiec 1 year ago
parent
commit
407fb09e8f
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      engine/compiler.c

+ 1
- 1
engine/compiler.c View File

@ -2289,7 +2289,7 @@ static sxi32 PH7_CompileVar(ph7_gen_state *pGen) {
break;
} else if(pGen->pIn->nType & PH7_TK_COMMA) {
pGen->pIn++;
} else {
} else if(pGen->pIn < pGen->pEnd) {
PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, "Unexpected token '%z'", &pGen->pIn->sData);
}
}

Loading…
Cancel
Save