if() used at HB_P_FUNCTIONSHORT to avoid a hb_itemClear() call when not needed

This commit is contained in:
Antonio Linares
2002-01-21 12:51:04 +00:00
parent b15cdade44
commit f07384c78b

View File

@@ -594,7 +594,9 @@ void HB_EXPORT hb_vmExecute( const BYTE * pCode, PHB_SYMB pSymbols )
break;
case HB_P_FUNCTIONSHORT:
hb_itemClear( &hb_stack.Return );
if( ( &hb_stack.Return )->type )
hb_itemClear( &hb_stack.Return );
hb_vmDo( pCode[ w + 1 ] );
hb_itemCopy( hb_stackTopItem(), &hb_stack.Return );
hb_stackPush();