From 840563219728d2a1285408d8081f8cc015408310 Mon Sep 17 00:00:00 2001 From: Phil Krylov Date: Fri, 8 Dec 2023 23:17:27 +0100 Subject: [PATCH] 2023-12-08 23:17 UTC+0100 Phil Krylov (phil a t krylov.eu) * contrib/sddsqlt3/core.c ! Fixed a different signedness compare warning. --- ChangeLog.txt | 4 ++++ contrib/sddsqlt3/core.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 9f74d3c313..35ddd0a104 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -7,6 +7,10 @@ Entries may not always be in chronological/commit order. See license at the end of file. */ +2023-12-08 23:17 UTC+0100 Phil Krylov (phil a t krylov.eu) + * contrib/sddsqlt3/core.c + ! Fixed a different signedness compare warning. + 2023-12-07 21:25 UTC+0100 Phil Krylov (phil a t krylov.eu) * contrib/3rd/sqlite3/* * Updated local sqlite3 from 3.8.2 to 3.44.2. diff --git a/contrib/sddsqlt3/core.c b/contrib/sddsqlt3/core.c index f523843009..e9af9ea3c8 100644 --- a/contrib/sddsqlt3/core.c +++ b/contrib/sddsqlt3/core.c @@ -458,7 +458,7 @@ static HB_ERRCODE sqlite3Open( SQLBASEAREAP pArea ) #ifdef HB_SQLT3_MAP_DECLARED_EMULATED sqlite3DeclStru( st, uiIndex, &uiRetLen, NULL ); #endif - dbFieldInfo.uiLen = ( HB_USHORT ) HB_MAX( nSize, uiRetLen ); + dbFieldInfo.uiLen = ( HB_USHORT ) HB_MAX( nSize, ( HB_SIZE ) uiRetLen ); pStr = ( char * ) hb_xgrab( ( HB_SIZE ) dbFieldInfo.uiLen + 1 ); memset( pStr, ' ', dbFieldInfo.uiLen ); hb_itemPutCLPtr( pItem, pStr, dbFieldInfo.uiLen );