Compiler expressions optimizer modified to return a final zero for pcode strings

This commit is contained in:
Antonio Linares
2002-01-27 09:26:23 +00:00
parent 14088cdec5
commit 5529cf15df

View File

@@ -337,7 +337,7 @@ static HB_EXPR_FUNC( hb_compExprUseString )
break;
case HB_EA_PUSH_PCODE:
{
HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asString.string, pSelf->ulLength );
HB_EXPR_PCODE2( hb_compGenPushString, pSelf->value.asString.string, pSelf->ulLength + 1 );
if( hb_compExprCheckMacroVar( pSelf->value.asString.string ) )
HB_EXPR_GENPCODE1( hb_compGenPCode1, HB_P_MACROTEXT );
}