Skip to content

Commit f98e478

Browse files
committed
fix
1 parent cee6d23 commit f98e478

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Common/include/option_structure.inl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ class COptionArray final : public COptionBase {
245245
string SetValue(const vector<string>& option_value) override {
246246
COptionBase::SetValue(option_value);
247247
// Check that the size is correct
248-
if ((option_value.size() != size_t(size) && allow_fewer) || option_value.size() > size_t(size)) {
248+
if ((option_value.size() < size_t(size) && !allow_fewer) || option_value.size() > size_t(size)) {
249249
string newstring;
250250
newstring.append(this->name);
251251
newstring.append(": wrong number of arguments: ");

0 commit comments

Comments
 (0)