Set NULL data type instead of throwing an error.
The build was successful.
Details
The build was successful.
Details
This commit is contained in:
parent
65aaf7be67
commit
a00d30afa2
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue