This commit is contained in:
17
engine/vm.c
17
engine/vm.c
@@ -2205,6 +2205,23 @@ static sxi32 VmByteCodeExec(
|
||||
PH7_MemObjToBool(pTos);
|
||||
}
|
||||
break;
|
||||
/*
|
||||
* CVT_CHAR: * * *
|
||||
*
|
||||
* Force the top of the stack to be a char.
|
||||
*/
|
||||
case PH7_OP_CVT_CHAR:
|
||||
#ifdef UNTRUST
|
||||
if(pTos < pStack) {
|
||||
goto Abort;
|
||||
}
|
||||
#endif
|
||||
if((pTos->iFlags & MEMOBJ_CHAR) == 0) {
|
||||
PH7_MemObjToChar(pTos);
|
||||
}
|
||||
/* Invalidate any prior representation */
|
||||
MemObjSetType(pTos, MEMOBJ_CHAR);
|
||||
break;
|
||||
/*
|
||||
* CVT_NULL: * * *
|
||||
*
|
||||
|
Reference in New Issue
Block a user