Don't compare signed and unsigned
This commit is contained in:
parent
d5d8b308e9
commit
0327049b99
|
@ -880,7 +880,7 @@ void ArgumentParser::printBashCompletion(int argc, const char *const *argv, unsi
|
||||||
size_t openingLen, compoundOpeningStartLen = 0;
|
size_t openingLen, compoundOpeningStartLen = 0;
|
||||||
unsigned char openingDenotationType = Value;
|
unsigned char openingDenotationType = Value;
|
||||||
if(argc && nextArgumentOrValue) {
|
if(argc && nextArgumentOrValue) {
|
||||||
if(currentWordIndex < argc) {
|
if(currentWordIndex < static_cast<unsigned int>(argc)) {
|
||||||
opening = argv[currentWordIndex];
|
opening = argv[currentWordIndex];
|
||||||
// For some reason completions for eg. "set --values disk=1 tag=a" are splitted so the
|
// 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").
|
// equation sign is an own argument ("set --values disk = 1 tag = a").
|
||||||
|
|
Loading…
Reference in New Issue