mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 18:48:54 +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
|
// Use cost 0 for prefix match
|
||||||
if (istartsWith(options[i].name, options[i].name + optnamelen, unkopt,
|
if (istartsWith(options[i].name, options[i].name + optnamelen, unkopt,
|
||||||
unkopt + unkoptlen)) {
|
unkopt + unkoptlen)) {
|
||||||
if (optnamelen == unkoptlen) {
|
if (optnamelen == static_cast<size_t>(unkoptlen)) {
|
||||||
// Exact match, then we don't show any condidates.
|
// Exact match, then we don't show any condidates.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user