Allow to store a character in string variable.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-04-11 11:33:00 +02:00
förälder aae526b1d4
incheckning cdc0dade2a
Signerad av: belliash
GPG-nyckel ID: 4E829243E0CFE6B4

Visa fil

@ -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) {