From 441d73387ed12f762737cb74ae5f0b2d085ee0ed Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Mon, 17 Apr 2000 04:20:39 +0000 Subject: [PATCH] 20000417-05:49 GMT+1 Victor Szakats --- harbour/source/vm/asort.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/harbour/source/vm/asort.c b/harbour/source/vm/asort.c index 24a75b4de6..6c9be293d8 100644 --- a/harbour/source/vm/asort.c +++ b/harbour/source/vm/asort.c @@ -130,8 +130,8 @@ static LONG hb_arraySortQuickPartition( PHB_ITEM pItems, LONG lb, LONG ub, PHB_I hb_vmPush( pItems + i ); hb_vmPush( &pivot ); hb_vmDo( 2 ); - - if( HB_IS_LOGICAL( &hb_stack.Return ) && hb_stack.Return.item.asLogical.value ) + + if( ( HB_IS_LOGICAL( &hb_stack.Return ) ? hb_stack.Return.item.asLogical.value : hb_itemIsLess( pItems + i, &pivot ) ) ) i++; else break; @@ -145,7 +145,7 @@ static LONG hb_arraySortQuickPartition( PHB_ITEM pItems, LONG lb, LONG ub, PHB_I hb_vmPush( pItems + j ); hb_vmDo( 2 ); - if( HB_IS_LOGICAL( &hb_stack.Return ) && hb_stack.Return.item.asLogical.value ) + if( ( HB_IS_LOGICAL( &hb_stack.Return ) ? hb_stack.Return.item.asLogical.value : hb_itemIsLess( &pivot, pItems + j ) ) ) j--; else break;