See changelog

This commit is contained in:
Eddie Runia
1999-05-22 16:53:50 +00:00
parent 62fe2c2913
commit a110ed9d06
3 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
19990522-17:50 CET Eddie Runia
* source/rtl/arrays.c, source/rtl/classes.c
typical : if it works on one compiler, it will fail on another.
oClone also modified :-)
19990522-17:25 CET Eddie Runia
* source/vm/hvm.c
'Array' bug possibly resolved.

View File

@@ -544,9 +544,9 @@ PITEM hb_arrayClone( PITEM pSrcArray )
PITEM pSrcItem = pSrcBaseArray->pItems + ulCount;
if ( pSrcItem->wType == IT_ARRAY )
hb_itemArrayPut( pDstArray, ulCount, hb_arrayClone( pSrcItem ) );
hb_itemArrayPut( pDstArray, ulCount + 1, hb_arrayClone( pSrcItem ) );
else
hb_itemArrayPut( pDstArray, ulCount, pSrcItem );
hb_itemArrayPut( pDstArray, ulCount + 1, pSrcItem );
}
return pDstArray;
}
@@ -687,6 +687,8 @@ HARBOUR ACLONE( void )
{
PITEM pDstArray = hb_arrayClone( pSrcArray );
ItemCopy( &stack.Return, pDstArray ); /* AClone() returns the new array */
ItemRelease( pDstArray );
_xfree( pDstArray );
}
else
_ret();

View File

@@ -684,6 +684,8 @@ HARBOUR OCLONE( void )
{
PITEM pDstObject = hb_arrayClone( pSrcObject );
ItemCopy( &stack.Return, pDstObject ); /* OClone() returns the new object */
ItemRelease( pDstArray );
_xfree( pDstArray );
}
else
_ret();