tweaks: adjust a couple of types, to reduce the number of warnings

This avoids eleven warnings of the kind "comparison between signed
and unsigned integer expressions [-Wsign-compare]".
This commit is contained in:
Benno Schulenberg
2018-03-22 19:32:17 +01:00
parent c88a2fd9ca
commit 30fc197b66
6 changed files with 13 additions and 12 deletions

View File

@@ -2600,7 +2600,8 @@ char *input_tab(char *buf, bool allow_files, size_t *place,
if (!*lastwastab)
*lastwastab = TRUE;
else if (num_matches > 1) {
int longest_name = 0, ncols, editline = 0;
size_t longest_name = 0, ncols;
int editline = 0;
/* Sort the list of available choices. */
qsort(matches, num_matches, sizeof(char *), diralphasort);