Skip to content

Commit

Permalink
2025-01-18 05:03 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
Browse files Browse the repository at this point in the history
  * src/rdd/dbfnsx/dbfnsx1.c
  * src/rtl/dates.c
  * src/rtl/hbtoken.c
    ! pacified few stupid warnings
  • Loading branch information
druzus committed Jan 18, 2025
1 parent 0fc4196 commit 60e9a0e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
Entries may not always be in chronological/commit order.
See license at the end of file. */

2025-01-18 05:03 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rdd/dbfnsx/dbfnsx1.c
* src/rtl/dates.c
* src/rtl/hbtoken.c
! pacified few stupid warnings

2025-01-18 04:59 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbssl/bio.c
! added missing BIO_free() call in HB_BIO destructor
Expand Down
2 changes: 1 addition & 1 deletion src/rdd/dbfnsx/dbfnsx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -2095,7 +2095,7 @@ static HB_ERRCODE hb_nsxIndexHeaderRead( LPNSXINDEX pIndex )
return HB_FAILURE;

if( ( pIndex->FileSize ? pIndex->HeaderBuff.Signature[ 0 ] !=
( pIndex->LargeFile ? NSX_SIGNATURE_LARGE : NSX_SIGNATURE ) :
( HB_UCHAR ) ( pIndex->LargeFile ? NSX_SIGNATURE_LARGE : NSX_SIGNATURE ) :
( pIndex->HeaderBuff.Signature[ 0 ] != NSX_SIGNATURE &&
pIndex->HeaderBuff.Signature[ 0 ] != NSX_SIGNATURE_LARGE ) ) ||
pIndex->HeaderBuff.IndexFlags[ 0 ] != 0 )
Expand Down
4 changes: 2 additions & 2 deletions src/rtl/dates.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ char * hb_dateFormat( const char * szDate, char * szFormattedDate, const char *
int digit = HB_TOUPPER( ( HB_UCHAR ) *szPtr );
szPtr++;
digit_count = 1;
while( HB_TOUPPER( ( HB_UCHAR ) *szPtr ) == digit && format_count < size )
while( ( int ) HB_TOUPPER( ( HB_UCHAR ) *szPtr ) == digit && format_count < size )
{
szPtr++;
if( format_count + digit_count < size )
Expand Down Expand Up @@ -404,7 +404,7 @@ char * hb_timeFormat( char * szBuffer, const char * szTimeFormat, long lMilliSec
int count = -i;
int ch = HB_TOUPPER( szTimeFormat[ i ] );
++i;
while( ch == HB_TOUPPER( szTimeFormat[ i ] ) && i < size )
while( ch == ( int ) HB_TOUPPER( szTimeFormat[ i ] ) && i < size )
++i;
count += i;
switch( ch )
Expand Down
6 changes: 3 additions & 3 deletions src/rtl/hbtoken.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static HB_SIZE hb_tokenCount( const char * szLine, HB_SIZE nLen,
( ch == '\n' || ch == '\r' ) )
{
++nTokens;
if( nPos + 1 < nLen && szLine[ nPos + 1 ] == ( ch == '\n' ? '\r' : '\n' ) )
if( nPos + 1 < nLen && szLine[ nPos + 1 ] == ( char ) ( ch == '\n' ? '\r' : '\n' ) )
++nPos;
}
else if( nDelim && ch == szDelim[ 0 ] &&
Expand Down Expand Up @@ -126,7 +126,7 @@ static const char * hb_tokenGet( const char * szLine, HB_SIZE nLen,
( ch == '\n' || ch == '\r' ) )
{
HB_SIZE nL = ( nPos + 1 < nLen &&
szLine[ nPos + 1 ] == ( ch == '\n' ? '\r' : '\n' ) ) ? 1 : 0;
szLine[ nPos + 1 ] == ( char ) ( ch == '\n' ? '\r' : '\n' ) ) ? 1 : 0;
if( --nToken == 0 )
{
*pnDelim = nL + 1;
Expand Down Expand Up @@ -192,7 +192,7 @@ static PHB_ITEM hb_tokenArray( const char * szLine, HB_SIZE nLen,
( ch == '\n' || ch == '\r' ) )
{
hb_arraySetCL( pArray, ++nToken, szLine + nStart, nPos - nStart );
if( nPos + 1 < nLen && szLine[ nPos + 1 ] == ( ch == '\n' ? '\r' : '\n' ) )
if( nPos + 1 < nLen && szLine[ nPos + 1 ] == ( char ) ( ch == '\n' ? '\r' : '\n' ) )
++nPos;
nStart = nPos + 1;
}
Expand Down

0 comments on commit 60e9a0e

Please sign in to comment.