2014-08-21 01:11 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbtip/mail.prg
! fixed missing 1-st adress in CC and BCC parameters - many
for information about the bug and patch
* contrib/hbtip/sendmail.prg
! typo in comment - thanks to Heinz V Bergen too
* src/rtl/gtwvt/gtwvt.c
* some minor modification to sync code with Vitkor's branch
* src/vm/hvm.c
* src/vm/itemapi.c
* small optimization in string comparison
This commit is contained in:
@@ -3784,9 +3784,10 @@ static void hb_vmExactlyEqual( void )
|
||||
else if( HB_IS_STRING( pItem1 ) && HB_IS_STRING( pItem2 ) )
|
||||
{
|
||||
HB_BOOL fResult = pItem1->item.asString.length == pItem2->item.asString.length &&
|
||||
memcmp( pItem1->item.asString.value,
|
||||
pItem2->item.asString.value,
|
||||
pItem1->item.asString.length ) == 0;
|
||||
( pItem1->item.asString.value == pItem2->item.asString.value ||
|
||||
memcmp( pItem1->item.asString.value,
|
||||
pItem2->item.asString.value,
|
||||
pItem1->item.asString.length ) == 0 );
|
||||
hb_stackPop();
|
||||
hb_itemClear( pItem1 );
|
||||
pItem1->type = HB_IT_LOGICAL;
|
||||
|
||||
@@ -2261,6 +2261,10 @@ int hb_itemStrCmp( PHB_ITEM pFirst, PHB_ITEM pSecond, HB_BOOL bForceExact )
|
||||
|
||||
szFirst = pFirst->item.asString.value;
|
||||
szSecond = pSecond->item.asString.value;
|
||||
|
||||
if( szFirst == szSecond )
|
||||
return 0;
|
||||
|
||||
nLenFirst = pFirst->item.asString.length;
|
||||
nLenSecond = pSecond->item.asString.length;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user