From bfea6f79b7c069cf5f0db596797d2f428c715427 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Wed, 10 Sep 2025 19:04:10 +0300
Subject: [PATCH 15/15] Make parameter long in curl_easy_setopt() call

See RM #1679

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 utility/netfile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utility/netfile.c b/utility/netfile.c
index 55509186a4..e4369643a8 100644
--- a/utility/netfile.c
+++ b/utility/netfile.c
@@ -118,7 +118,7 @@ static bool netfile_download_file_core(const char *URL, FILE *fp,
     curl_easy_setopt(handle, CURLOPT_WRITEDATA, fp);
   }
   curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headers);
-  curl_easy_setopt(handle, CURLOPT_FAILONERROR, 1);
+  curl_easy_setopt(handle, CURLOPT_FAILONERROR, (long)1);
 
   curlret = curl_easy_perform(handle);
 
-- 
2.51.0

