Allow to store a character in string variable.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-11 11:33:00 +02:00
parent aae526b1d4
commit cdc0dade2a
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 0 deletions

View File

@ -382,6 +382,8 @@ PH7_PRIVATE sxi32 PH7_CheckVarCompat(ph7_value *pObj, int nType) {
return SXRET_OK;
} else if((nType & MEMOBJ_CHAR) && (pObj->iFlags & MEMOBJ_INT)) {
return SXRET_OK;
} else if((nType & MEMOBJ_STRING) && (pObj->iFlags & MEMOBJ_CHAR)) {
return SXRET_OK;
} else if((nType & MEMOBJ_CHAR) && (pObj->iFlags & MEMOBJ_STRING)) {
int len = SyBlobLength(&pObj->sBlob);
if(len == 0 || len == 1) {