Variable cannot be typecasted to NULL.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-03-22 18:33:39 +01:00
parent 9a41f7195d
commit 154469f475
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
2 changed files with 0 additions and 17 deletions

View File

@ -2234,19 +2234,6 @@ static sxi32 VmByteCodeExec(
/* Invalidate any prior representation */
MemObjSetType(pTos, MEMOBJ_CHAR);
break;
/*
* CVT_NULL: * * *
*
* Nullify the top of the stack.
*/
case PH7_OP_CVT_NULL:
#ifdef UNTRUST
if(pTos < pStack) {
goto Abort;
}
#endif
PH7_MemObjRelease(pTos);
break;
/*
* CVT_NUMC: * * *
*
@ -5645,9 +5632,6 @@ static const char *VmInstrToString(sxi32 nOp) {
case PH7_OP_CVT_BOOL:
zOp = "CVT_BOOL";
break;
case PH7_OP_CVT_NULL:
zOp = "CVT_NULL";
break;
case PH7_OP_CVT_OBJ:
zOp = "CVT_OBJ";
break;

View File

@ -1455,7 +1455,6 @@ enum ph7_vm_op {
PH7_OP_LOAD_REF, /* Load reference */
PH7_OP_STORE_REF, /* Store a reference to a variable*/
PH7_OP_MEMBER, /* Class member run-time access */
PH7_OP_CVT_NULL, /* NULL cast */
PH7_OP_CVT_OBJ, /* Object cast */
PH7_OP_CVT_CALL, /* Callback cast */
PH7_OP_CVT_RES, /* Resource cast */