~mil/mepo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH mepo] Explicitly cast curl_off_t values to avoid cross build errors

~tranzystorekk <tranzystorekk@git.sr.ht>
Details
Message ID
<172581609718.7557.13877115717314158680-0@git.sr.ht>
DKIM signature
missing
Download raw message
Patch: +2 -2
From: tranzystorekk <tranzystorek.io@protonmail.com>

---
 src/TileCache.zig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/TileCache.zig b/src/TileCache.zig
index f1fcb20..cb03b63 100644
--- a/src/TileCache.zig
+++ b/src/TileCache.zig
@@ -338,8 +338,8 @@ fn curl_callback_tile_xferinfo(
    _ = ul_total;
    _ = ul_now;
    const tile_data: *TransferDatum = @alignCast(@ptrCast(user_data));
    tile_data.progress_dl_now = dl_now;
    tile_data.progress_dl_total = dl_total;
    tile_data.progress_dl_now = @intCast(dl_now);
    tile_data.progress_dl_total = @intCast(dl_total);
    return curl.CURL_PROGRESSFUNC_CONTINUE;
}

-- 
2.45.2

Re: [PATCH mepo] Explicitly cast curl_off_t values to avoid cross build errors

Details
Message ID
<5e1b50e9-12f6-4141-877e-c90d66e90826@app.fastmail.com>
In-Reply-To
<172581609718.7557.13877115717314158680-0@git.sr.ht> (view parent)
DKIM signature
pass
Download raw message
On Sun, Sep 8, 2024, at 1:02 PM, ~tranzystorekk wrote:
> From: tranzystorekk <tranzystorek.io@protonmail.com>
>
> ---
>  src/TileCache.zig | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/TileCache.zig b/src/TileCache.zig
> index f1fcb20..cb03b63 100644
> --- a/src/TileCache.zig
> +++ b/src/TileCache.zig
> @@ -338,8 +338,8 @@ fn curl_callback_tile_xferinfo(
>      _ = ul_total;
>      _ = ul_now;
>      const tile_data: *TransferDatum = @alignCast(@ptrCast(user_data));
> -    tile_data.progress_dl_now = dl_now;
> -    tile_data.progress_dl_total = dl_total;
> +    tile_data.progress_dl_now = @intCast(dl_now);
> +    tile_data.progress_dl_total = @intCast(dl_total);
>      return curl.CURL_PROGRESSFUNC_CONTINUE;
>  }
> 
> -- 
> 2.45.2

Thanks - applied!
Reply to thread Export thread (mbox)