This commit is contained in:
parent
8810a86a2c
commit
f0e50678e3
@ -532,12 +532,12 @@ PH7_PRIVATE sxi32 PH7_MemObjToResource(ph7_value *pObj) {
|
|||||||
*/
|
*/
|
||||||
PH7_PRIVATE sxi32 PH7_MemObjToString(ph7_value *pObj) {
|
PH7_PRIVATE sxi32 PH7_MemObjToString(ph7_value *pObj) {
|
||||||
sxi32 rc = SXRET_OK;
|
sxi32 rc = SXRET_OK;
|
||||||
if(pObj->iFlags & MEMOBJ_CALL) {
|
if((pObj->iFlags & MEMOBJ_STRING) == 0) {
|
||||||
MemObjSetType(pObj, MEMOBJ_STRING);
|
if((pObj->iFlags & MEMOBJ_CALL) == 0) {
|
||||||
} else if((pObj->iFlags & MEMOBJ_STRING) == 0) {
|
/* Perform the conversion */
|
||||||
/* Perform the conversion */
|
SyBlobReset(&pObj->sBlob); /* Reset the internal buffer */
|
||||||
SyBlobReset(&pObj->sBlob); /* Reset the internal buffer */
|
rc = MemObjStringValue(&pObj->sBlob, &(*pObj), TRUE);
|
||||||
rc = MemObjStringValue(&pObj->sBlob, &(*pObj), TRUE);
|
}
|
||||||
MemObjSetType(pObj, MEMOBJ_STRING);
|
MemObjSetType(pObj, MEMOBJ_STRING);
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user