Browse Source

Allow to store a character in string variable.

pull/50/head
Rafal Kupiec 3 years ago
parent
commit
cdc0dade2a
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
  1. 2
      engine/memobj.c

2
engine/memobj.c

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

Loading…
Cancel
Save