diff --git a/src/util.cc b/src/util.cc index 63c9be55..a00a7d69 100644 --- a/src/util.cc +++ b/src/util.cc @@ -565,7 +565,7 @@ void show_candidates(const char *unkopt, option *options) { // Use cost 0 for prefix match if (istartsWith(options[i].name, options[i].name + optnamelen, unkopt, unkopt + unkoptlen)) { - if (optnamelen == unkoptlen) { + if (optnamelen == static_cast(unkoptlen)) { // Exact match, then we don't show any condidates. return; }