From d677cbb1e97473885d4a11c7aa73326780a77da7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Tue, 16 Sep 2025 13:16:11 +0200 Subject: [PATCH] 2025-09-16 13:16 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbcurl/core.c ! pacified warning --- ChangeLog.txt | 4 ++++ contrib/hbcurl/core.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 354599bd70..f27c5ab7b8 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. */ +2025-09-16 13:16 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * contrib/hbcurl/core.c + ! pacified warning + 2025-09-10 09:08 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * contrib/hbbmp/core.c ! pacified BCC warnings diff --git a/contrib/hbcurl/core.c b/contrib/hbcurl/core.c index c79dc43038..ed565919ad 100644 --- a/contrib/hbcurl/core.c +++ b/contrib/hbcurl/core.c @@ -1646,7 +1646,7 @@ HB_FUNC( CURL_EASY_SETOPT ) res = curl_easy_setopt( hb_curl->curl, CURLOPT_UPLOAD, HB_CURL_OPT_BOOL( 3 ) ); break; case HB_CURLOPT_DOWNLOAD: /* Harbour extension */ - res = curl_easy_setopt( hb_curl->curl, CURLOPT_UPLOAD, ! HB_CURL_OPT_BOOL( 3 ) ); + res = curl_easy_setopt( hb_curl->curl, CURLOPT_UPLOAD, ( long ) ( HB_CURL_OPT_BOOL( 3 ) ? 0 : 1 ) ); break; #if LIBCURL_VERSION_NUM >= 0x070A08 /* Not documented. GUESS. */ case HB_CURLOPT_MAXFILESIZE: