Don't compare signed and unsigned

This commit is contained in:
Martchus 2017-03-20 23:00:23 +01:00
parent d5d8b308e9
commit 0327049b99
1 changed files with 1 additions and 1 deletions

View File

@ -880,7 +880,7 @@ void ArgumentParser::printBashCompletion(int argc, const char *const *argv, unsi
size_t openingLen, compoundOpeningStartLen = 0;
unsigned char openingDenotationType = Value;
if(argc && nextArgumentOrValue) {
if(currentWordIndex < argc) {
if(currentWordIndex < static_cast<unsigned int>(argc)) {
opening = argv[currentWordIndex];
// For some reason completions for eg. "set --values disk=1 tag=a" are splitted so the
// equation sign is an own argument ("set --values disk = 1 tag = a").