Let the compiler use OP_ADD instead of OP_CAT
All checks were successful
The build was successful.

This commit is contained in:
2018-08-07 07:47:25 +02:00
parent 9a56751879
commit e4ab5974fa
2 changed files with 9 additions and 4 deletions

View File

@@ -778,7 +778,7 @@ static sxi32 GenStateCompileString(ph7_gen_state *pGen) {
}/*for(;;)*/
if(iCons > 1) {
/* Concatenate all compiled constants */
PH7_VmEmitInstr(pGen->pVm, PH7_OP_CAT, iCons, 0, 0, 0);
PH7_VmEmitInstr(pGen->pVm, PH7_OP_ADD, iCons, 1, 0, 0);
}
/* Node successfully compiled */
return SXRET_OK;