src: Fix compiler warning

This commit is contained in:
Tatsuhiro Tsujikawa 2015-02-02 22:40:41 +09:00
parent 9f5f724147
commit d37fc8f3a6
1 changed files with 1 additions and 1 deletions

View File

@ -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<size_t>(unkoptlen)) {
// Exact match, then we don't show any condidates.
return;
}