mirror of https://git.tukaani.org/xz.git
xz: Silence warnings from -Wsign-conversion in a 32-bit build.
This commit is contained in:
parent
683d3f178e
commit
09fbd2f052
|
@ -27,5 +27,5 @@ tuklib_mbstr_fw(const char *str, int columns_min)
|
||||||
if (width < (size_t)columns_min)
|
if (width < (size_t)columns_min)
|
||||||
len += (size_t)columns_min - width;
|
len += (size_t)columns_min - width;
|
||||||
|
|
||||||
return len;
|
return (int)len;
|
||||||
}
|
}
|
||||||
|
|
|
@ -276,7 +276,7 @@ init_headings(void)
|
||||||
// If the translated string is wider than the minimum width
|
// If the translated string is wider than the minimum width
|
||||||
// set at compile time, increase the width.
|
// set at compile time, increase the width.
|
||||||
if ((size_t)(headings[HEADING_CHECK].columns) < w)
|
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) {
|
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
|
// If the translated string is wider than the minimum width
|
||||||
// set at compile time, increase the width.
|
// set at compile time, increase the width.
|
||||||
if ((size_t)(headings[i].columns) < w)
|
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
|
// Calculate the field width for printf("%*s") so that
|
||||||
// the string uses .columns number of columns on a terminal.
|
// the string uses .columns number of columns on a terminal.
|
||||||
|
|
Loading…
Reference in New Issue