Typehinting merge #50

Merged
belliash merged 298 commits from typehinting into master 2019-04-17 11:27:52 +02:00
Showing only changes of commit 598dc9ce51 - Show all commits

View File

@ -6811,7 +6811,7 @@ PH7_PRIVATE sxi32 PH7_VmCallUserFunction(
ph7_value *aStack; ph7_value *aStack;
VmInstr aInstr[2]; VmInstr aInstr[2];
int i; int i;
if((pFunc->iFlags & (MEMOBJ_STRING | MEMOBJ_HASHMAP)) == 0) { if((pFunc->iFlags & (MEMOBJ_CALL | MEMOBJ_STRING | MEMOBJ_HASHMAP)) == 0) {
/* Don't bother processing,it's invalid anyway */ /* Don't bother processing,it's invalid anyway */
if(pResult) { if(pResult) {
/* Assume a null return value */ /* Assume a null return value */
@ -6899,7 +6899,7 @@ PH7_PRIVATE sxi32 PH7_VmCallUserFunction(
/* Emit the DONE instruction */ /* Emit the DONE instruction */
aInstr[1].iOp = PH7_OP_DONE; aInstr[1].iOp = PH7_OP_DONE;
aInstr[1].iP1 = 1; /* Extract function return value if available */ aInstr[1].iP1 = 1; /* Extract function return value if available */
aInstr[1].iP2 = 0; aInstr[1].iP2 = 1;
aInstr[1].p3 = 0; aInstr[1].p3 = 0;
aInstr[1].bExec = FALSE; aInstr[1].bExec = FALSE;
aInstr[1].iLine = 1; aInstr[1].iLine = 1;