2014-10-08 18:00 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/vm/arrays.c
! added protection against internal error when ACOPY() is executed
with the same array passed as source and target without any indexes
which can force item move. Now ACOPY() works like in Cl*pper.
This commit is contained in:
@@ -10,6 +10,12 @@
|
||||
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
|
||||
*/
|
||||
|
||||
2014-10-08 18:00 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* src/vm/arrays.c
|
||||
! added protection against internal error when ACOPY() is executed
|
||||
with the same array passed as source and target without any indexes
|
||||
which can force item move. Now ACOPY() works like in Cl*pper.
|
||||
|
||||
2014-10-08 11:06 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
|
||||
* contrib/hbamf/amfdec.c
|
||||
! simplified and fixed datetime decoding.
|
||||
|
||||
@@ -1452,12 +1452,14 @@ HB_BOOL hb_arrayCopy( PHB_ITEM pSrcArray, PHB_ITEM pDstArray, HB_SIZE * pnStart,
|
||||
if( nTarget <= nDstLen )
|
||||
{
|
||||
#endif
|
||||
if( pDstBaseArray->pItems + nTarget != pSrcBaseArray->pItems + nStart )
|
||||
{
|
||||
if( nCount > nDstLen - nTarget )
|
||||
nCount = nDstLen - nTarget + 1;
|
||||
|
||||
if( nCount > nDstLen - nTarget )
|
||||
nCount = nDstLen - nTarget + 1;
|
||||
|
||||
for( nTarget--, nStart--; nCount > 0; nCount--, nStart++, nTarget++ )
|
||||
hb_itemCopy( pDstBaseArray->pItems + nTarget, pSrcBaseArray->pItems + nStart );
|
||||
for( nTarget--, nStart--; nCount > 0; nCount--, nStart++, nTarget++ )
|
||||
hb_itemCopy( pDstBaseArray->pItems + nTarget, pSrcBaseArray->pItems + nStart );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user