parent
95fba30f9b
commit
2de455aa01
@ -1371,10 +1371,10 @@ static ph7_value *VmExtractMemObj(
|
|||||||
char *zName = (char *)pName->zString;
|
char *zName = (char *)pName->zString;
|
||||||
VmSlot sLocal;
|
VmSlot sLocal;
|
||||||
if(!bCreate) {
|
if(!bCreate) {
|
||||||
/* Do not create the variable,return NULL instead */
|
/* Do not create the variable, return NULL instead */
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* No such variable,automatically create a new one and install
|
/* No such variable, automatically create a new one and install
|
||||||
* it in the current frame.
|
* it in the current frame.
|
||||||
*/
|
*/
|
||||||
pObj = PH7_ReserveMemObj(&(*pVm));
|
pObj = PH7_ReserveMemObj(&(*pVm));
|
||||||
@ -4948,7 +4948,7 @@ static sxi32 VmByteCodeExec(
|
|||||||
pObj = 0;
|
pObj = 0;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
/* Pass by value,make a copy of the given argument */
|
/* Pass by value, make a copy of the given argument */
|
||||||
pObj = VmExtractMemObj(&(*pVm), &aFormalArg[n].sName, FALSE, TRUE);
|
pObj = VmExtractMemObj(&(*pVm), &aFormalArg[n].sName, FALSE, TRUE);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user