From cd95ec3b72d642d15bedecff0f47122e27a022b1 Mon Sep 17 00:00:00 2001 From: Tobias Stoeckmann Date: Sat, 11 May 2024 19:06:04 +0200 Subject: [PATCH] uu: Fix Visual Studio compiler warning (#2180) Switch from int64_t to ssize_t for l and body, which is a no-op on 64 bit systems. On 32 bit systems, this change is okay because these variables interact with other ssize_t variables in this scope. Fixes compiler warning regarding line 584 in which ssize_t and int64_t are mixed in calculations: warning C4244: '=': conversion from 'int64_t' to 'long' --- libarchive/archive_read_support_filter_uu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_read_support_filter_uu.c b/libarchive/archive_read_support_filter_uu.c index 7563e861e..8d361a4f8 100644 --- a/libarchive/archive_read_support_filter_uu.c +++ b/libarchive/archive_read_support_filter_uu.c @@ -506,7 +506,7 @@ read_more: uudecode->in_cnt = 0; } for (;used < avail_in; d += llen, used += llen) { - int64_t l, body; + ssize_t l, body; b = d; len = get_line(b, avail_in - used, &nl); -- 2.47.2