From ccbf3a75ba431d77684e024d5268e26d8171fcca Mon Sep 17 00:00:00 2001 From: Lailton Date: Tue, 3 Dec 2024 01:35:51 -0300 Subject: [PATCH] 2024-12-03 01:27 UTC-0300 Lailton Fernando Mariano (lailton/at/paysoft.com.br) * src/vm/hashfunc.c ! fixed issue hb_scan when we are looking for a logical value as true. Many thanks to Marcos Gambeta who found the problem. --- ChangeLog.txt | 5 +++++ src/vm/hashfunc.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 802c1e059d..f0d9aac640 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,11 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2024-12-03 01:27 UTC-0300 Lailton Fernando Mariano (lailton/at/paysoft.com.br) + * src/vm/hashfunc.c + ! fixed issue hb_scan when we are looking for a logical value as true. + Many thanks to Marcos Gambeta who found the problem. + 2024-10-28 16:57 UTC+0100 Aleksander Czajczynski (hb fki.pl) * src/rdd/dbf1.c ! reading varchar binary field ("Q:B") from a .dbf diff --git a/src/vm/hashfunc.c b/src/vm/hashfunc.c index 3eb8be76a6..d65ac1db75 100644 --- a/src/vm/hashfunc.c +++ b/src/vm/hashfunc.c @@ -610,7 +610,7 @@ HB_FUNC( HB_HSCAN ) } else if( HB_IS_LOGICAL( pValue ) ) { - HB_BOOL fValue = hb_itemGetDL( pValue ); + HB_BOOL fValue = hb_itemGetL( pValue ); while( nCount-- ) { PHB_ITEM pItem = hb_hashGetValueAt( pHash, nStart );