Set NULL data type instead of throwing an error.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-06-08 09:14:16 +02:00
parent 65aaf7be67
commit a00d30afa2
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 3 additions and 4 deletions

View File

@ -2406,13 +2406,12 @@ static sxi32 PH7_CompileVar(ph7_gen_state *pGen) {
} else if(nKey & PH7_KEYWORD_VOID) { } else if(nKey & PH7_KEYWORD_VOID) {
nType = MEMOBJ_VOID; nType = MEMOBJ_VOID;
} else { } else {
PH7_GenCompileError(&(*pGen), E_ERROR, pGen->pIn->nLine, /* No data type at all */
"Unknown data type name '%z'", nType = MEMOBJ_NULL;
&pGen->pIn->sData);
} }
/* Jump the data type keyword */ /* Jump the data type keyword */
pGen->pIn++; pGen->pIn++;
if((pGen->pIn->nType & PH7_TK_OSB) && &pGen->pIn[1] < pGen->pEnd && (pGen->pIn[1].nType & PH7_TK_CSB)) { if(nType != MEMOBJ_NULL && (pGen->pIn->nType & PH7_TK_OSB) && &pGen->pIn[1] < pGen->pEnd && (pGen->pIn[1].nType & PH7_TK_CSB)) {
nType |= MEMOBJ_HASHMAP; nType |= MEMOBJ_HASHMAP;
pGen->pIn += 2; pGen->pIn += 2;
} }