This commit is contained in:
parent
70676cb0d5
commit
798fd7d3b2
17
engine/vm.c
17
engine/vm.c
|
@ -2283,20 +2283,6 @@ static sxi32 VmByteCodeExec(
|
||||||
/* Invalidate any prior representation */
|
/* Invalidate any prior representation */
|
||||||
MemObjSetType(pTos, MEMOBJ_CHAR);
|
MemObjSetType(pTos, MEMOBJ_CHAR);
|
||||||
break;
|
break;
|
||||||
/*
|
|
||||||
* CVT_NUMC: * * *
|
|
||||||
*
|
|
||||||
* Force the top of the stack to be a numeric type (integer,real or both).
|
|
||||||
*/
|
|
||||||
case PH7_OP_CVT_NUMC:
|
|
||||||
#ifdef UNTRUST
|
|
||||||
if(pTos < pStack) {
|
|
||||||
goto Abort;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
/* Force a numeric cast */
|
|
||||||
PH7_MemObjToNumeric(pTos);
|
|
||||||
break;
|
|
||||||
/*
|
/*
|
||||||
* CVT_OBJ: * * *
|
* CVT_OBJ: * * *
|
||||||
*
|
*
|
||||||
|
@ -5348,9 +5334,6 @@ static const char *VmInstrToString(sxi32 nOp) {
|
||||||
case PH7_OP_CVT_OBJ:
|
case PH7_OP_CVT_OBJ:
|
||||||
zOp = "CVT_OBJ";
|
zOp = "CVT_OBJ";
|
||||||
break;
|
break;
|
||||||
case PH7_OP_CVT_NUMC:
|
|
||||||
zOp = "CVT_NUMC";
|
|
||||||
break;
|
|
||||||
case PH7_OP_INCR:
|
case PH7_OP_INCR:
|
||||||
zOp = "INCR";
|
zOp = "INCR";
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -1420,7 +1420,6 @@ enum ph7_vm_op {
|
||||||
PH7_OP_YIELD, /* Stack yield */
|
PH7_OP_YIELD, /* Stack yield */
|
||||||
PH7_OP_CVT_BOOL, /* Boolean cast */
|
PH7_OP_CVT_BOOL, /* Boolean cast */
|
||||||
PH7_OP_CVT_CHAR, /* Char cast */
|
PH7_OP_CVT_CHAR, /* Char cast */
|
||||||
PH7_OP_CVT_NUMC, /* Numeric (integer,real or both) type cast */
|
|
||||||
PH7_OP_INCR, /* Increment ++ */
|
PH7_OP_INCR, /* Increment ++ */
|
||||||
PH7_OP_DECR, /* Decrement -- */
|
PH7_OP_DECR, /* Decrement -- */
|
||||||
PH7_OP_NEW, /* new */
|
PH7_OP_NEW, /* new */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user