logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: c40b38c5166de3e640895ec4aa6c014bc830347f
parent 25385fc1f69fe2ef22c6162c5048d0451a79b22d
Author: Michael Forney <mforney@mforney.org>
Date:   Mon,  6 Sep 2021 18:20:03 -0700

curl: Use double for progress calculation instead of long double

Diffstat:

Apkg/curl/patch/0002-Use-double-instead-of-long-double-for-progress-calcu.patch25+++++++++++++++++++++++++
Mpkg/curl/ver2+-
2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/pkg/curl/patch/0002-Use-double-instead-of-long-double-for-progress-calcu.patch b/pkg/curl/patch/0002-Use-double-instead-of-long-double-for-progress-calcu.patch @@ -0,0 +1,25 @@ +From 4a4a14e99d8bdf4f25bbf60ed4f1a62f19ed3a57 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Mon, 6 Sep 2021 18:19:30 -0700 +Subject: [PATCH] Use double instead of long double for progress calculation + +--- + lib/progress.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/progress.c b/lib/progress.c +index 4bcd615eb..d46a3a06d 100644 +--- a/lib/progress.c ++++ b/lib/progress.c +@@ -377,7 +377,7 @@ static curl_off_t trspeed(curl_off_t size, /* number of bytes */ + { + if(us < 1) + return size * 1000000; +- return (curl_off_t)((long double)size/us * 1000000); ++ return (curl_off_t)((double)size/us * 1000000); + } + + /* returns TRUE if it's time to show the progress meter */ +-- +2.32.0 + diff --git a/pkg/curl/ver b/pkg/curl/ver @@ -1 +1 @@ -7.78.0 r0 +7.78.0 r1