if() used at HB_P_FUNCTIONSHORT to avoid a hb_itemClear() call when not needed
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user