mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-06 18:18:52 +08:00
src: Fix compiler warning
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user