Try to report some line.
All checks were successful
The build was successful.

This commit is contained in:
Rafal Kupiec 2019-04-10 09:18:26 +02:00
parent 447910ce2e
commit d6434ba19e
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4

View File

@ -8408,7 +8408,7 @@ static int vm_builtin_assert(ph7_context *pCtx, int nArg, ph7_value **apArg) {
} }
/* Invoke the callback */ /* Invoke the callback */
PH7_MemObjInitFromString(pVm, &sFile, pFile); PH7_MemObjInitFromString(pVm, &sFile, pFile);
PH7_MemObjInitFromInt(pVm, &sLine, 0); PH7_MemObjInitFromInt(pVm, &sLine, 1);
apCbArg[0] = &sFile; apCbArg[0] = &sFile;
apCbArg[1] = &sLine; apCbArg[1] = &sLine;
apCbArg[2] = pAssert; apCbArg[2] = pAssert;