20000417-06:32 GMT+1 Victor Szakats <info@szelvesz.hu>

This commit is contained in:
Viktor Szakats
2000-04-17 04:29:09 +00:00
parent 441d73387e
commit 2e05c047a3
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
20000417-06:32 GMT+1 Victor Szakats <info@szelvesz.hu>
* source/vm/asort.c
! Some fixes to ASORT()
20000417-05:49 GMT+1 Victor Szakats <info@szelvesz.hu>
* include/hbapi.h

View File

@@ -232,7 +232,7 @@ BOOL hb_arraySort( PHB_ITEM pArray, ULONG * pulStart, ULONG * pulCount, PHB_ITEM
ULONG ulLen = pBaseArray->ulLen;
ULONG ulStart;
ULONG ulCount;
if( pulStart && ( *pulStart >= 1 ) )
ulStart = *pulStart;
else
@@ -240,7 +240,7 @@ BOOL hb_arraySort( PHB_ITEM pArray, ULONG * pulStart, ULONG * pulCount, PHB_ITEM
if( ulStart <= ulLen )
{
if( pulCount && ( *pulCount <= ulLen - ulStart ) )
if( pulCount && *pulCount >= 1 && ( *pulCount <= ulLen - ulStart ) )
ulCount = *pulCount;
else
ulCount = ulLen - ulStart + 1;