From ee992c6b5f189645846d1d85e5e66dbb4b585617 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 17 Dec 2018 10:42:14 +0100 Subject: [PATCH] fix Find_filename_match() issue introduced in commit 49b7d101 --- src/filesel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filesel.c b/src/filesel.c index d1855b84..b330d16f 100644 --- a/src/filesel.c +++ b/src/filesel.c @@ -1485,7 +1485,7 @@ static short Find_filename_match(const T_Fileselector *list, const word * fname) { for (counter=0; fname[counter] != 0; counter++) { - if (tolower(current_item->Full_name[counter] != towlower(fname[counter]))) + if ((wint_t)tolower(current_item->Full_name[counter]) != towlower(fname[counter])) break; } }