Browse Source

Make a use from MemObjIsNumeric().

pull/56/head
Rafal Kupiec 1 year ago
parent
commit
3aa31a9dfa
Signed by: belliash GPG Key ID: 4E829243E0CFE6B4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      engine/vm.c

+ 2
- 2
engine/vm.c View File

@ -2852,7 +2852,7 @@ static sxi32 VmByteCodeExec(
if(pTos < pStack) {
goto Abort;
}
if(pTos->nType & (MEMOBJ_INT | MEMOBJ_REAL) && (pTos->nType & MEMOBJ_HASHMAP) == 0) {
if(PH7_MemObjIsNumeric(pTos) && (pTos->nType & MEMOBJ_HASHMAP) == 0) {
if(pTos->nIdx != SXU32_HIGH) {
ph7_value *pObj;
if((pObj = (ph7_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0) {
@ -2893,7 +2893,7 @@ static sxi32 VmByteCodeExec(
if(pTos < pStack) {
goto Abort;
}
if(pTos->nType & (MEMOBJ_INT | MEMOBJ_REAL) && (pTos->nType & MEMOBJ_HASHMAP) == 0) {
if(PH7_MemObjIsNumeric(pTos) && (pTos->nType & MEMOBJ_HASHMAP) == 0) {
if(pTos->nIdx != SXU32_HIGH) {
ph7_value *pObj;
if((pObj = (ph7_value *)SySetAt(&pVm->aMemObj, pTos->nIdx)) != 0) {

Loading…
Cancel
Save