aboutsummaryrefslogtreecommitdiff
path: root/src/xz/list.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-12 06:01:12 +0200
committerJia Tan <jiat0218@gmail.com>2023-02-03 21:10:38 +0800
commit09fbd2f0527def89e839c8907de4fe7ef6bc5019 (patch)
tree5678f2fb08c33762f6331a40fe914ec5f82498c7 /src/xz/list.c
parentliblzma: Silence another warning from -Wsign-conversion in a 32-bit build. (diff)
downloadxz-09fbd2f0527def89e839c8907de4fe7ef6bc5019.tar.xz
xz: Silence warnings from -Wsign-conversion in a 32-bit build.
Diffstat (limited to '')
-rw-r--r--src/xz/list.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/list.c b/src/xz/list.c
index ee61aeb9..90799bd2 100644
--- a/src/xz/list.c
+++ b/src/xz/list.c
@@ -276,7 +276,7 @@ init_headings(void)
// If the translated string is wider than the minimum width
// set at compile time, increase the width.
if ((size_t)(headings[HEADING_CHECK].columns) < w)
- headings[HEADING_CHECK].columns = w;
+ headings[HEADING_CHECK].columns = (int)w;
}
for (unsigned i = 0; i < ARRAY_SIZE(headings); ++i) {
@@ -291,7 +291,7 @@ init_headings(void)
// If the translated string is wider than the minimum width
// set at compile time, increase the width.
if ((size_t)(headings[i].columns) < w)
- headings[i].columns = w;
+ headings[i].columns = (int)w;
// Calculate the field width for printf("%*s") so that
// the string uses .columns number of columns on a terminal.