Optimize the code a bit.
The build was successful. Details

This commit is contained in:
Rafal Kupiec 2019-04-10 08:52:06 +02:00
parent 8810a86a2c
commit f0e50678e3
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 6 additions and 6 deletions

View File

@ -532,12 +532,12 @@ PH7_PRIVATE sxi32 PH7_MemObjToResource(ph7_value *pObj) {
*/
PH7_PRIVATE sxi32 PH7_MemObjToString(ph7_value *pObj) {
sxi32 rc = SXRET_OK;
if(pObj->iFlags & MEMOBJ_CALL) {
MemObjSetType(pObj, MEMOBJ_STRING);
} else if((pObj->iFlags & MEMOBJ_STRING) == 0) {
/* Perform the conversion */
SyBlobReset(&pObj->sBlob); /* Reset the internal buffer */
rc = MemObjStringValue(&pObj->sBlob, &(*pObj), TRUE);
if((pObj->iFlags & MEMOBJ_STRING) == 0) {
if((pObj->iFlags & MEMOBJ_CALL) == 0) {
/* Perform the conversion */
SyBlobReset(&pObj->sBlob); /* Reset the internal buffer */
rc = MemObjStringValue(&pObj->sBlob, &(*pObj), TRUE);
}
MemObjSetType(pObj, MEMOBJ_STRING);
}
return rc;